49static std::array<int, 10> const kConnectionBackoff{{1, 1, 2, 3, 5, 8, 13, 21, 34, 55}};
Heuristically tuned constants.
static constexpr auto kMaxConnectAttempts
Maximum number of simultaneous connection attempts.
constexpr std::uint32_t kMaxHops
static constexpr auto kBootcachePrunePercent
static constexpr auto kMaxRedirects
Max redirects we will accept from one connection.
static constexpr auto kSecondsPerConnect
Time to wait between making batches of connection attempts.
static std::array< int, 10 > const kConnectionBackoff
constexpr std::chrono::seconds kLiveCacheSecondsToLive(30)
static std::chrono::seconds const kBootcacheCooldownTime(60)
static constexpr auto kBootcacheSize
static constexpr auto kDefaultMaxPeers
The default value of Config::maxPeers.
constexpr std::uint32_t kNumberOfEndpoints
constexpr std::uint32_t kNumberOfEndpointsMax
constexpr std::chrono::seconds kRecentAttemptDuration(60)
static constexpr auto kMinOutCount
A hard minimum on the number of outgoing connections.
constexpr std::uint32_t kRedirectEndpointCount
static constexpr auto kOutPercent
The percentage of total peer slots that are outbound.
constexpr std::chrono::seconds kSecondsPerMessage(151)