Module state

Module state 

Source
Expand description

Distributed network state maintained via gossip.

Each node in a BillPouch network periodically announces its NodeInfo over gossipsub. All nodes accumulate received announcements in a local NetworkState map. The metadata field on NodeInfo is intentionally open (HashMap<String, Value>) so that future versions can extend the gossipped information without a breaking protocol change.

Structsยง

NetworkState
Local in-memory view of all known nodes in all joined networks.
NodeInfo
Gossipped information about a single node (one peer = one service instance).