xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
rpc
detail
src/xrpld/rpc/detail/Tuning.h
1
#pragma once
2
3
#include <
chrono
>
4
9
namespace
xrpl::rpc::tuning
{
10
14
struct
LimitRange
15
{
16
unsigned
int
rmin
,
rDefault
,
rmax
;
17
};
18
22
static
constexpr
LimitRange
kAccountLines
= {.rmin = 10, .rDefault = 200, .rmax = 400};
23
27
static
constexpr
LimitRange
kAccountChannels
= {.rmin = 10, .rDefault = 200, .rmax = 400};
28
32
static
constexpr
LimitRange
kAccountObjects
= {.rmin = 10, .rDefault = 200, .rmax = 400};
33
37
static
constexpr
LimitRange
kAccountOffers
= {.rmin = 10, .rDefault = 200, .rmax = 400};
38
42
static
constexpr
LimitRange
kAccountTx
= {.rmin = 10, .rDefault = 200, .rmax = 400};
43
47
static
constexpr
LimitRange
kBookOffers
= {.rmin = 1, .rDefault = 60, .rmax = 100};
48
52
static
constexpr
LimitRange
kNoRippleCheck
= {.rmin = 10, .rDefault = 300, .rmax = 400};
53
57
static
constexpr
LimitRange
kAccountNfTokens
= {.rmin = 20, .rDefault = 100, .rmax = 400};
58
62
static
constexpr
LimitRange
kNftOffers
= {.rmin = 50, .rDefault = 250, .rmax = 500};
63
64
static
constexpr
int
kDefaultAutoFillFeeMultiplier
= 10;
65
static
constexpr
int
kDefaultAutoFillFeeDivisor
= 1;
66
static
constexpr
int
kMaxPathfindsInProgress
= 2;
67
static
constexpr
int
kMaxPathfindJobCount
= 50;
68
static
constexpr
int
kMaxJobQueueClients
= 500;
69
constexpr
auto
kMaxValidatedLedgerAge
=
std::chrono::minutes
{2};
70
static
constexpr
int
kMaxRequestSize
= 1000000;
71
75
static
constexpr
int
kBinaryPageLength
= 2048;
76
80
static
constexpr
int
kJsonPageLength
= 256;
81
85
constexpr
int
86
pageLength
(
bool
isBinary)
87
{
88
return
isBinary ?
kBinaryPageLength
:
kJsonPageLength
;
89
}
90
94
static
constexpr
int
kMaxSrcCur
= 18;
95
99
static
constexpr
int
kMaxAutoSrcCur
= 88;
100
101
}
// namespace xrpl::rpc::tuning
102
chrono
std::chrono::minutes
xrpl::rpc::tuning
Tuned constants.
Definition
src/xrpld/rpc/detail/Tuning.h:9
xrpl::rpc::tuning::kBinaryPageLength
static constexpr int kBinaryPageLength
Maximum number of pages in one response from a binary LedgerData request.
Definition
src/xrpld/rpc/detail/Tuning.h:75
xrpl::rpc::tuning::kAccountTx
static constexpr LimitRange kAccountTx
Limits for the account_tx command.
Definition
src/xrpld/rpc/detail/Tuning.h:42
xrpl::rpc::tuning::kNftOffers
static constexpr LimitRange kNftOffers
Limits for the nft_buy_offers & nft_sell_offers commands.
Definition
src/xrpld/rpc/detail/Tuning.h:62
xrpl::rpc::tuning::kDefaultAutoFillFeeMultiplier
static constexpr int kDefaultAutoFillFeeMultiplier
Definition
src/xrpld/rpc/detail/Tuning.h:64
xrpl::rpc::tuning::kMaxPathfindsInProgress
static constexpr int kMaxPathfindsInProgress
Definition
src/xrpld/rpc/detail/Tuning.h:66
xrpl::rpc::tuning::kMaxRequestSize
static constexpr int kMaxRequestSize
Definition
src/xrpld/rpc/detail/Tuning.h:70
xrpl::rpc::tuning::kMaxPathfindJobCount
static constexpr int kMaxPathfindJobCount
Definition
src/xrpld/rpc/detail/Tuning.h:67
xrpl::rpc::tuning::pageLength
constexpr int pageLength(bool isBinary)
Maximum number of pages in a LedgerData response.
Definition
src/xrpld/rpc/detail/Tuning.h:86
xrpl::rpc::tuning::kNoRippleCheck
static constexpr LimitRange kNoRippleCheck
Limits for the no_ripple_check command.
Definition
src/xrpld/rpc/detail/Tuning.h:52
xrpl::rpc::tuning::kDefaultAutoFillFeeDivisor
static constexpr int kDefaultAutoFillFeeDivisor
Definition
src/xrpld/rpc/detail/Tuning.h:65
xrpl::rpc::tuning::kMaxValidatedLedgerAge
constexpr auto kMaxValidatedLedgerAge
Definition
src/xrpld/rpc/detail/Tuning.h:69
xrpl::rpc::tuning::kAccountNfTokens
static constexpr LimitRange kAccountNfTokens
Limits for the account_nftokens command, in pages.
Definition
src/xrpld/rpc/detail/Tuning.h:57
xrpl::rpc::tuning::kAccountObjects
static constexpr LimitRange kAccountObjects
Limits for the account_objects command.
Definition
src/xrpld/rpc/detail/Tuning.h:32
xrpl::rpc::tuning::kBookOffers
static constexpr LimitRange kBookOffers
Limits for the book_offers command.
Definition
src/xrpld/rpc/detail/Tuning.h:47
xrpl::rpc::tuning::kAccountLines
static constexpr LimitRange kAccountLines
Limits for the account_lines command.
Definition
src/xrpld/rpc/detail/Tuning.h:22
xrpl::rpc::tuning::kAccountOffers
static constexpr LimitRange kAccountOffers
Limits for the account_offers command.
Definition
src/xrpld/rpc/detail/Tuning.h:37
xrpl::rpc::tuning::kMaxSrcCur
static constexpr int kMaxSrcCur
Maximum number of source currencies allowed in a path find request.
Definition
src/xrpld/rpc/detail/Tuning.h:94
xrpl::rpc::tuning::kMaxAutoSrcCur
static constexpr int kMaxAutoSrcCur
Maximum number of auto source currencies in a path find request.
Definition
src/xrpld/rpc/detail/Tuning.h:99
xrpl::rpc::tuning::kAccountChannels
static constexpr LimitRange kAccountChannels
Limits for the account_channels command.
Definition
src/xrpld/rpc/detail/Tuning.h:27
xrpl::rpc::tuning::kMaxJobQueueClients
static constexpr int kMaxJobQueueClients
Definition
src/xrpld/rpc/detail/Tuning.h:68
xrpl::rpc::tuning::kJsonPageLength
static constexpr int kJsonPageLength
Maximum number of pages in one response from a Json LedgerData request.
Definition
src/xrpld/rpc/detail/Tuning.h:80
xrpl::rpc::tuning::LimitRange
Represents RPC limit parameter values that have a min, default and max.
Definition
src/xrpld/rpc/detail/Tuning.h:15
xrpl::rpc::tuning::LimitRange::rmax
unsigned int rmax
Definition
src/xrpld/rpc/detail/Tuning.h:16
xrpl::rpc::tuning::LimitRange::rmin
unsigned int rmin
Definition
src/xrpld/rpc/detail/Tuning.h:16
xrpl::rpc::tuning::LimitRange::rDefault
unsigned int rDefault
Definition
src/xrpld/rpc/detail/Tuning.h:16
Generated by
1.17.0