Expand description
Constants
Constants§
- CLOSE_
GROUP_ SIZE - The maximum number of peers to return in a
GetClosestPeers
response. This is the group size used in safe network protocol to be responsible for an item in the network. The peer should be present among the CLOSE_GROUP_SIZE if we’re fetching the close_group(peer) The size has been set to 5 for improved performance. - KAD_
STREAM_ PROTOCOL_ ID - The protocol ID for the Kademlia stream
- MAX_
PACKET_ SIZE - What is the largest packet to send over the network.
- MAX_
RECORD_ SIZE - The maximum size of a record
- REPLICATION_
FACTOR - The replication factor we use on the network Libp2p queries all depend on this, for quorum and others Is defined as CLOSE_GROUP_SIZE + 2