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