|
rippled
|
Heuristically tuned constants. More...
Enumerations | |
| enum | { secondsPerConnect = 10 , maxConnectAttempts = 20 , outPercent = 15 , minOutCount = 10 , defaultMaxPeers = 21 , maxRedirects = 30 } |
| enum | { bootcacheSize = 1000 , bootcachePrunePercent = 10 } |
Functions | |
| static std::chrono::seconds const | bootcacheCooldownTime (60) |
| std::chrono::seconds constexpr | secondsPerMessage (151) |
| std::chrono::seconds constexpr | liveCacheSecondsToLive (30) |
| std::chrono::seconds constexpr | recentAttemptDuration (60) |
Variables | |
| static std::array< int, 10 > const | connectionBackoff {{1, 1, 2, 3, 5, 8, 13, 21, 34, 55}} |
| std::uint32_t constexpr | maxHops = 6 |
| std::uint32_t constexpr | numberOfEndpoints = 2 * maxHops |
| std::uint32_t constexpr | numberOfEndpointsMax = std::max<decltype(numberOfEndpoints)>(numberOfEndpoints * 2, 64) |
| std::uint32_t constexpr | redirectEndpointCount = 10 |
Heuristically tuned constants.
| anonymous enum |
| Enumerator | |
|---|---|
| secondsPerConnect | Time to wait between making batches of connection attempts. |
| maxConnectAttempts | |
| outPercent | |
| minOutCount | |
| defaultMaxPeers | |
| maxRedirects | |
Definition at line 12 of file src/xrpld/peerfinder/detail/Tuning.h.
| anonymous enum |
| Enumerator | |
|---|---|
| bootcacheSize | |
| bootcachePrunePercent | |
Definition at line 67 of file src/xrpld/peerfinder/detail/Tuning.h.
|
static |
|
constexpr |
|
constexpr |
|
constexpr |
|
static |
Definition at line 59 of file src/xrpld/peerfinder/detail/Tuning.h.
|
constexpr |
Definition at line 89 of file src/xrpld/peerfinder/detail/Tuning.h.
|
constexpr |
Definition at line 92 of file src/xrpld/peerfinder/detail/Tuning.h.
|
constexpr |
Definition at line 95 of file src/xrpld/peerfinder/detail/Tuning.h.
|
constexpr |
Definition at line 98 of file src/xrpld/peerfinder/detail/Tuning.h.