xrpld
Loading...
Searching...
No Matches
src/xrpld/rpc/detail/Tuning.h
1#pragma once
2
6
9{
10 unsigned int rmin, rDefault, rmax;
11};
12
14static constexpr LimitRange kAccountLines = {.rmin = 10, .rDefault = 200, .rmax = 400};
15
17static constexpr LimitRange kAccountChannels = {.rmin = 10, .rDefault = 200, .rmax = 400};
18
20static constexpr LimitRange kAccountObjects = {.rmin = 10, .rDefault = 200, .rmax = 400};
21
23static constexpr LimitRange kAccountOffers = {.rmin = 10, .rDefault = 200, .rmax = 400};
24
26static constexpr LimitRange kAccountTx = {.rmin = 10, .rDefault = 200, .rmax = 400};
27
29static constexpr LimitRange kBookOffers = {.rmin = 1, .rDefault = 60, .rmax = 100};
30
32static constexpr LimitRange kNoRippleCheck = {.rmin = 10, .rDefault = 300, .rmax = 400};
33
35static constexpr LimitRange kAccountNfTokens = {.rmin = 20, .rDefault = 100, .rmax = 400};
36
38static constexpr LimitRange kNftOffers = {.rmin = 50, .rDefault = 250, .rmax = 500};
39
40static constexpr int kDefaultAutoFillFeeMultiplier = 10;
41static constexpr int kDefaultAutoFillFeeDivisor = 1;
42static constexpr int kMaxPathfindsInProgress = 2;
43static constexpr int kMaxPathfindJobCount = 50;
44static constexpr int kMaxJobQueueClients = 500;
46static constexpr int kMaxRequestSize = 1000000;
47
49static constexpr int kBinaryPageLength = 2048;
50
52static constexpr int kJsonPageLength = 256;
53
55constexpr int
56pageLength(bool isBinary)
57{
58 return isBinary ? kBinaryPageLength : kJsonPageLength;
59}
60
62static constexpr int kMaxSrcCur = 18;
63
65static constexpr int kMaxAutoSrcCur = 88;
66
67} // namespace xrpl::RPC::Tuning
68
static constexpr LimitRange kAccountNfTokens
Limits for the account_nftokens command, in pages.
static constexpr int kMaxPathfindJobCount
static constexpr int kDefaultAutoFillFeeDivisor
static constexpr LimitRange kNoRippleCheck
Limits for the no_ripple_check command.
constexpr int pageLength(bool isBinary)
Maximum number of pages in a LedgerData response.
static constexpr LimitRange kNftOffers
Limits for the nft_buy_offers & nft_sell_offers commands.
static constexpr LimitRange kAccountChannels
Limits for the account_channels command.
static constexpr int kMaxAutoSrcCur
Maximum number of auto source currencies in a path find request.
static constexpr LimitRange kAccountLines
Limits for the account_lines command.
static constexpr int kJsonPageLength
Maximum number of pages in one response from a Json LedgerData request.
static constexpr LimitRange kBookOffers
Limits for the book_offers command.
static constexpr LimitRange kAccountTx
Limits for the account_tx command.
static constexpr int kBinaryPageLength
Maximum number of pages in one response from a binary LedgerData request.
static constexpr int kMaxPathfindsInProgress
static constexpr int kMaxJobQueueClients
static constexpr int kMaxSrcCur
Maximum number of source currencies allowed in a path find request.
static constexpr LimitRange kAccountOffers
Limits for the account_offers command.
static constexpr LimitRange kAccountObjects
Limits for the account_objects command.
static constexpr int kMaxRequestSize
static constexpr int kDefaultAutoFillFeeMultiplier
Represents RPC limit parameter values that have a min, default and max.