MCPcopy Create free account
hub / github.com/SeismicSystems/summit / get_node_ip

Function get_node_ip

node/src/args.rs:765–789  ·  view source on GitHub ↗
(
    flags: &RunFlags,
    key_store: &KeyStore<PrivateKey>,
    committee: &[Validator],
)

Source from the content-addressed store, hash-verified

763 .await
764 })
765}
766
767async fn run_node_local_inner(
768 context: tokio::Context,
769 flags: RunFlags,
770 key_store: KeyStore<PrivateKey>,
771 checkpoint: Option<ConsensusState>,
772 checkpoint_parent_block: Option<Block>,
773) -> anyhow::Result<()> {
774 let context = context.with_label("summit_cw");
775
776 let genesis = acquire_genesis(&context, &flags).await;
777
778 let mut committee: Vec<Validator> = genesis.get_validators().expect("Failed to get validators");
779 committee.sort_by(|lhs, rhs| lhs.node_public_key.cmp(&rhs.node_public_key));
780
781 let initial_state = get_initial_state(&genesis, &committee, checkpoint);
782 let peers = initial_state.get_validator_keys();
783
784 let engine_ipc_path =
785 get_expanded_path(&flags.engine_ipc_path).expect("failed to expand engine ipc path");
786
787 #[allow(unused)]
788 #[cfg(feature = "bench")]
789 let engine_client = {
790 let block_dir = flags
791 .bench_block_dir
792 .as_ref()

Callers 2

run_node_innerFunction · 0.85
run_node_local_innerFunction · 0.85

Calls 3

resolve_external_ipFunction · 0.85
iterMethod · 0.80
public_keyMethod · 0.80

Tested by

no test coverage detected