MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / cometbft_node_id

Method cometbft_node_id

fendermint/testing/materializer/src/docker/node.rs:558–560  ·  view source on GitHub ↗

Read the CometBFT node ID (network identity) from the file we persisted during creation.

(&self)

Source from the content-addressed store, hash-verified

556
557 /// Read the CometBFT node ID (network identity) from the file we persisted during creation.
558 pub fn cometbft_node_id(&self) -> anyhow::Result<String> {
559 read_file(self.path.join("keys").join(COMETBFT_NODE_ID))
560 }
561
562 /// Read the libp2p peer ID (network identity) from the file we persisted during creation.
563 pub fn fendermint_peer_id(&self) -> anyhow::Result<String> {

Callers 1

start_all_containersMethod · 0.80

Calls 2

read_fileFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected