rippled
Loading...
Searching...
No Matches
src/xrpld/rpc/detail/Tuning.h
1#pragma once
2
3namespace xrpl {
4namespace RPC {
5
8namespace Tuning {
9
12{
13 unsigned int rmin, rDefault, rmax;
14};
15
17static LimitRange constexpr accountLines = {10, 200, 400};
18
20static LimitRange constexpr accountChannels = {10, 200, 400};
21
23static LimitRange constexpr accountObjects = {10, 200, 400};
24
26static LimitRange constexpr accountOffers = {10, 200, 400};
27
29static LimitRange constexpr accountTx = {10, 200, 400};
30
32static LimitRange constexpr bookOffers = {0, 60, 100};
33
35static LimitRange constexpr noRippleCheck = {10, 300, 400};
36
38static LimitRange constexpr accountNFTokens = {20, 100, 400};
39
41static LimitRange constexpr nftOffers = {50, 250, 500};
42
43static int constexpr defaultAutoFillFeeMultiplier = 10;
44static int constexpr defaultAutoFillFeeDivisor = 1;
45static int constexpr maxPathfindsInProgress = 2;
46static int constexpr maxPathfindJobCount = 50;
47static int constexpr maxJobQueueClients = 500;
49static int constexpr maxRequestSize = 1000000;
50
52static int constexpr binaryPageLength = 2048;
53
55static int constexpr jsonPageLength = 256;
56
58inline int constexpr pageLength(bool isBinary)
59{
60 return isBinary ? binaryPageLength : jsonPageLength;
61}
62
64static int constexpr max_src_cur = 18;
65
67static int constexpr max_auto_src_cur = 88;
68
69} // namespace Tuning
72} // namespace RPC
73} // namespace xrpl
static LimitRange constexpr accountNFTokens
Limits for the account_nftokens command, in pages.
static int constexpr max_auto_src_cur
Maximum number of auto source currencies in a path find request.
static int constexpr defaultAutoFillFeeMultiplier
static LimitRange constexpr bookOffers
Limits for the book_offers command.
static LimitRange constexpr accountOffers
Limits for the account_offers command.
static int constexpr maxPathfindJobCount
static LimitRange constexpr accountChannels
Limits for the account_channels command.
static int constexpr jsonPageLength
Maximum number of pages in one response from a Json LedgerData request.
static int constexpr maxPathfindsInProgress
static int constexpr binaryPageLength
Maximum number of pages in one response from a binary LedgerData request.
static int constexpr max_src_cur
Maximum number of source currencies allowed in a path find request.
static LimitRange constexpr nftOffers
Limits for the nft_buy_offers & nft_sell_offers commands.
static LimitRange constexpr noRippleCheck
Limits for the no_ripple_check command.
static LimitRange constexpr accountTx
Limits for the account_tx command.
static LimitRange constexpr accountLines
Limits for the account_lines command.
static int constexpr maxRequestSize
static int constexpr defaultAutoFillFeeDivisor
int constexpr pageLength(bool isBinary)
Maximum number of pages in a LedgerData response.
static LimitRange constexpr accountObjects
Limits for the account_objects command.
static int constexpr maxJobQueueClients
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
Represents RPC limit parameter values that have a min, default and max.