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