Skip to content

Commit

Permalink
Always track the admin chain.
Browse files Browse the repository at this point in the history
  • Loading branch information
afck committed Oct 31, 2024
1 parent eec186d commit 7d0d3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion linera-client/src/client_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,13 @@ where
};
let node_provider = NodeProvider::new(node_options);
let delivery = CrossChainMessageDelivery::new(options.wait_for_outgoing_messages);
let chain_ids = wallet.chain_ids();
let mut chain_ids = wallet.chain_ids();
let name = match chain_ids.len() {
0 => "Client node".to_string(),
1 => format!("Client node for {:.8}", chain_ids[0]),
n => format!("Client node for {:.8} and {} others", chain_ids[0], n - 1),
};
chain_ids.push(wallet.genesis_admin_chain());
let client = Client::new(
node_provider,
storage,
Expand Down

0 comments on commit 7d0d3b7

Please sign in to comment.