xrpld
Loading...
Searching...
No Matches
include/xrpl/resource/detail/Tuning.h
1#pragma once
2
3#include <chrono>
4
5namespace xrpl::resource {
6
10
11// balance at which a warning is issued
12static constexpr auto kWarningThreshold = 5000;
13
14// balance at which the consumer is disconnected
15static constexpr auto kDropThreshold = 25000;
16
17// seconds in exponential decay window (power of two)
18static constexpr auto kDecayWindowSeconds = 32;
19
20// minimum balance to include a load source in gossip
21static constexpr auto kMinimumGossipBalance = 1000;
22
23// The number of seconds until an inactive table item is removed
25
26// Number of seconds until imported gossip expires
28
29} // namespace xrpl::resource
static constexpr auto kDecayWindowSeconds
static constexpr auto kMinimumGossipBalance
static constexpr std::chrono::seconds kSecondsUntilExpiration
static constexpr auto kWarningThreshold
Tunable constants.
static constexpr auto kDropThreshold
static constexpr std::chrono::seconds kGossipExpirationSeconds