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

Method node

fendermint/testing/materializer/src/testnet.rs:151–155  ·  view source on GitHub ↗

Get a node by name.

(&self, name: &NodeName)

Source from the content-addressed store, hash-verified

149
150 /// Get a node by name.
151 pub fn node(&self, name: &NodeName) -> anyhow::Result<&M::Node> {
152 self.nodes
153 .get(name)
154 .ok_or_else(|| anyhow!("node {name:?} does not exist"))
155 }
156
157 /// Get a subnet by name.
158 pub fn subnet(&self, name: &SubnetName) -> anyhow::Result<&M::Subnet> {

Callers 3

create_nodeMethod · 0.45
start_nodeMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected