Module constants

Module constants 

Source
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