Module solana_gossip::cluster_info
source · Expand description
The cluster_info
module defines a data structure that is shared by all the nodes in the network over
a gossip control plane. The goal is to share small bits of off-chain information and detect and
repair partitions.
This CRDT only supports a very limited set of types. A map of Pubkey -> Versioned Struct. The last version is always picked during an update.
The network is arranged in layers:
- layer 0 - Leader.
- layer 1 - As many nodes as we can fit
- layer 2 - Everyone else, if layer 1 is
2^10
, layer 2 should be able to fit2^20
number of nodes.
Bank needs to provide an interface for us to query the stake weight
Structs§
Enums§
Constants§
- milliseconds we sleep for between gossip requests
- Maximum number of hashes in AccountsHashes a node publishes such that the serialized size of the push/pull message stays below PACKET_DATA_SIZE.
- The maximum size of a bloom filter
- Maximum number of incremental hashes in SnapshotHashes a node publishes such that the serialized size of the push/pull message stays below PACKET_DATA_SIZE.