MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / node

Method node

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

Get a node by name.

(&self, name: &NodeName)

Source from the content-addressed store, hash-verified

142
143 /// Get a node by name.
144 pub fn node(&self, name: &NodeName) -> anyhow::Result<&M::Node> {
145 self.nodes
146 .get(name)
147 .ok_or_else(|| anyhow!("node {name:?} does not exist"))
148 }
149
150 /// Get a subnet by name.
151 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