rippled
Loading...
Searching...
No Matches
include
xrpl
resource
detail
include/xrpl/resource/detail/Tuning.h
1
#pragma once
2
3
#include <
chrono
>
4
5
namespace
xrpl
{
6
namespace
Resource {
7
9
enum
{
10
// Balance at which a warning is issued
11
warningThreshold
= 5000
12
13
// Balance at which the consumer is disconnected
14
,
15
dropThreshold
= 25000
16
17
// The number of seconds in the exponential decay window
18
// (This should be a power of two)
19
,
20
decayWindowSeconds
= 32
21
22
// The minimum balance required in order to include a load source in gossip
23
,
24
minimumGossipBalance
= 1000
25
};
26
27
// The number of seconds until an inactive table item is removed
28
std::chrono::seconds
constexpr
secondsUntilExpiration
{300};
29
30
// Number of seconds until imported gossip expires
31
std::chrono::seconds
constexpr
gossipExpirationSeconds
{30};
32
33
}
// namespace Resource
34
}
// namespace xrpl
chrono
std::chrono::seconds
xrpl::Resource::gossipExpirationSeconds
std::chrono::seconds constexpr gossipExpirationSeconds
Definition
include/xrpl/resource/detail/Tuning.h:31
xrpl::Resource::secondsUntilExpiration
std::chrono::seconds constexpr secondsUntilExpiration
Definition
include/xrpl/resource/detail/Tuning.h:28
xrpl::Resource::dropThreshold
@ dropThreshold
Definition
include/xrpl/resource/detail/Tuning.h:15
xrpl::Resource::warningThreshold
@ warningThreshold
Definition
include/xrpl/resource/detail/Tuning.h:11
xrpl::Resource::decayWindowSeconds
@ decayWindowSeconds
Definition
include/xrpl/resource/detail/Tuning.h:20
xrpl::Resource::minimumGossipBalance
@ minimumGossipBalance
Definition
include/xrpl/resource/detail/Tuning.h:24
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
Generated by
1.9.8