6 #ifndef KAGOME_NETWORK_PEERING_CONFIG 7 #define KAGOME_NETWORK_PEERING_CONFIG 15 std::chrono::seconds
peerTtl = std::chrono::minutes(10);
32 #endif // KAGOME_NETWORK_PEERING_CONFIG
std::chrono::seconds peerTtl
Time of peer inactivity to disconnect.
size_t hardLimit
Max peers before start forced disconnection.
size_t softLimit
Max peers count before start to disconnect of inactive ones.
std::chrono::seconds aligningPeriod
Period of active peers amount aligning.
size_t targetPeerAmount
Target amount of active peers.