rippled
Loading...
Searching...
No Matches
src/xrpld/rpc/detail/Tuning.h
1#ifndef XRPL_RPC_TUNING_H_INCLUDED
2#define XRPL_RPC_TUNING_H_INCLUDED
3
4namespace ripple {
5namespace RPC {
6
9namespace Tuning {
10
13{
14 unsigned int rmin, rdefault, rmax;
15};
16
18static LimitRange constexpr accountLines = {10, 200, 400};
19
21static LimitRange constexpr accountChannels = {10, 200, 400};
22
24static LimitRange constexpr accountObjects = {10, 200, 400};
25
27static LimitRange constexpr accountOffers = {10, 200, 400};
28
30static LimitRange constexpr accountTx = {10, 200, 400};
31
33static LimitRange constexpr bookOffers = {0, 60, 100};
34
36static LimitRange constexpr noRippleCheck = {10, 300, 400};
37
39static LimitRange constexpr accountNFTokens = {20, 100, 400};
40
42static LimitRange constexpr nftOffers = {50, 250, 500};
43
44static int constexpr defaultAutoFillFeeMultiplier = 10;
45static int constexpr defaultAutoFillFeeDivisor = 1;
46static int constexpr maxPathfindsInProgress = 2;
47static int constexpr maxPathfindJobCount = 50;
48static int constexpr maxJobQueueClients = 500;
50static int constexpr maxRequestSize = 1000000;
51
53static int constexpr binaryPageLength = 2048;
54
56static int constexpr jsonPageLength = 256;
57
59inline int constexpr pageLength(bool isBinary)
60{
61 return isBinary ? binaryPageLength : jsonPageLength;
62}
63
65static int constexpr max_src_cur = 18;
66
68static int constexpr max_auto_src_cur = 88;
69
70} // namespace Tuning
73} // namespace RPC
74} // namespace ripple
75
76#endif
static int constexpr maxPathfindJobCount
static int constexpr max_src_cur
Maximum number of source currencies allowed in a path find request.
static int constexpr jsonPageLength
Maximum number of pages in one response from a Json LedgerData request.
static int constexpr maxJobQueueClients
static int constexpr maxRequestSize
static int constexpr binaryPageLength
Maximum number of pages in one response from a binary LedgerData request.
static int constexpr defaultAutoFillFeeMultiplier
static int constexpr maxPathfindsInProgress
static LimitRange constexpr accountOffers
Limits for the account_offers command.
static int constexpr max_auto_src_cur
Maximum number of auto source currencies in a path find request.
static LimitRange constexpr accountTx
Limits for the account_tx command.
static LimitRange constexpr accountLines
Limits for the account_lines command.
static int constexpr defaultAutoFillFeeDivisor
int constexpr pageLength(bool isBinary)
Maximum number of pages in a LedgerData response.
static LimitRange constexpr bookOffers
Limits for the book_offers command.
static LimitRange constexpr accountNFTokens
Limits for the account_nftokens command, in pages.
static LimitRange constexpr nftOffers
Limits for the nft_buy_offers & nft_sell_offers commands.
static LimitRange constexpr accountChannels
Limits for the account_channels command.
static LimitRange constexpr noRippleCheck
Limits for the no_ripple_check command.
static LimitRange constexpr accountObjects
Limits for the account_objects command.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
Represents RPC limit parameter values that have a min, default and max.