MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / node_state

Method node_state

crates/firewheel-graph/src/context.rs:1016–1018  ·  view source on GitHub ↗

Get an immutable reference to the custom state of a node. If the node does not exist in the graph, then `None` will be returned.

(&self, id: NodeID)

Source from the content-addressed store, hash-verified

1014 /// If the node does not exist in the graph, then `None` will be returned.
1015 pub fn node_channel_config(&self, id: NodeID) -> Option<ChannelConfig> {
1016 self.graph.node_info(id).map(|n| n.info.channel_config)
1017 }
1018
1019 /// Get an immutable reference to the custom state of a node.
1020 ///
1021 /// If the node does not exist in the graph, then `None` will be returned.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected