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