xrpld
Loading...
Searching...
No Matches
xrpl::RPC::Tuning Namespace Reference

Tuned constants. More...

Classes

struct  LimitRange
 Represents RPC limit parameter values that have a min, default and max. More...

Functions

constexpr int pageLength (bool isBinary)
 Maximum number of pages in a LedgerData response.

Variables

static constexpr LimitRange kAccountLines = {.rmin = 10, .rDefault = 200, .rmax = 400}
 Limits for the account_lines command.
static constexpr LimitRange kAccountChannels = {.rmin = 10, .rDefault = 200, .rmax = 400}
 Limits for the account_channels command.
static constexpr LimitRange kAccountObjects = {.rmin = 10, .rDefault = 200, .rmax = 400}
 Limits for the account_objects command.
static constexpr LimitRange kAccountOffers = {.rmin = 10, .rDefault = 200, .rmax = 400}
 Limits for the account_offers command.
static constexpr LimitRange kAccountTx = {.rmin = 10, .rDefault = 200, .rmax = 400}
 Limits for the account_tx command.
static constexpr LimitRange kBookOffers = {.rmin = 1, .rDefault = 60, .rmax = 100}
 Limits for the book_offers command.
static constexpr LimitRange kNoRippleCheck = {.rmin = 10, .rDefault = 300, .rmax = 400}
 Limits for the no_ripple_check command.
static constexpr LimitRange kAccountNfTokens = {.rmin = 20, .rDefault = 100, .rmax = 400}
 Limits for the account_nftokens command, in pages.
static constexpr LimitRange kNftOffers = {.rmin = 50, .rDefault = 250, .rmax = 500}
 Limits for the nft_buy_offers & nft_sell_offers commands.
static constexpr int kDefaultAutoFillFeeMultiplier = 10
static constexpr int kDefaultAutoFillFeeDivisor = 1
static constexpr int kMaxPathfindsInProgress = 2
static constexpr int kMaxPathfindJobCount = 50
static constexpr int kMaxJobQueueClients = 500
constexpr auto kMaxValidatedLedgerAge = std::chrono::minutes{2}
static constexpr int kMaxRequestSize = 1000000
static constexpr int kBinaryPageLength = 2048
 Maximum number of pages in one response from a binary LedgerData request.
static constexpr int kJsonPageLength = 256
 Maximum number of pages in one response from a Json LedgerData request.
static constexpr int kMaxSrcCur = 18
 Maximum number of source currencies allowed in a path find request.
static constexpr int kMaxAutoSrcCur = 88
 Maximum number of auto source currencies in a path find request.

Detailed Description

Tuned constants.

Function Documentation

◆ pageLength()

int xrpl::RPC::Tuning::pageLength ( bool isBinary)
constexpr

Maximum number of pages in a LedgerData response.

Definition at line 56 of file src/xrpld/rpc/detail/Tuning.h.

Variable Documentation

◆ kAccountLines

LimitRange xrpl::RPC::Tuning::kAccountLines = {.rmin = 10, .rDefault = 200, .rmax = 400}
staticconstexpr

Limits for the account_lines command.

Definition at line 14 of file src/xrpld/rpc/detail/Tuning.h.

◆ kAccountChannels

LimitRange xrpl::RPC::Tuning::kAccountChannels = {.rmin = 10, .rDefault = 200, .rmax = 400}
staticconstexpr

Limits for the account_channels command.

Definition at line 17 of file src/xrpld/rpc/detail/Tuning.h.

◆ kAccountObjects

LimitRange xrpl::RPC::Tuning::kAccountObjects = {.rmin = 10, .rDefault = 200, .rmax = 400}
staticconstexpr

Limits for the account_objects command.

Definition at line 20 of file src/xrpld/rpc/detail/Tuning.h.

◆ kAccountOffers

LimitRange xrpl::RPC::Tuning::kAccountOffers = {.rmin = 10, .rDefault = 200, .rmax = 400}
staticconstexpr

Limits for the account_offers command.

Definition at line 23 of file src/xrpld/rpc/detail/Tuning.h.

◆ kAccountTx

LimitRange xrpl::RPC::Tuning::kAccountTx = {.rmin = 10, .rDefault = 200, .rmax = 400}
staticconstexpr

Limits for the account_tx command.

Definition at line 26 of file src/xrpld/rpc/detail/Tuning.h.

◆ kBookOffers

LimitRange xrpl::RPC::Tuning::kBookOffers = {.rmin = 1, .rDefault = 60, .rmax = 100}
staticconstexpr

Limits for the book_offers command.

Definition at line 29 of file src/xrpld/rpc/detail/Tuning.h.

◆ kNoRippleCheck

LimitRange xrpl::RPC::Tuning::kNoRippleCheck = {.rmin = 10, .rDefault = 300, .rmax = 400}
staticconstexpr

Limits for the no_ripple_check command.

Definition at line 32 of file src/xrpld/rpc/detail/Tuning.h.

◆ kAccountNfTokens

LimitRange xrpl::RPC::Tuning::kAccountNfTokens = {.rmin = 20, .rDefault = 100, .rmax = 400}
staticconstexpr

Limits for the account_nftokens command, in pages.

Definition at line 35 of file src/xrpld/rpc/detail/Tuning.h.

◆ kNftOffers

LimitRange xrpl::RPC::Tuning::kNftOffers = {.rmin = 50, .rDefault = 250, .rmax = 500}
staticconstexpr

Limits for the nft_buy_offers & nft_sell_offers commands.

Definition at line 38 of file src/xrpld/rpc/detail/Tuning.h.

◆ kDefaultAutoFillFeeMultiplier

int xrpl::RPC::Tuning::kDefaultAutoFillFeeMultiplier = 10
staticconstexpr

Definition at line 40 of file src/xrpld/rpc/detail/Tuning.h.

◆ kDefaultAutoFillFeeDivisor

int xrpl::RPC::Tuning::kDefaultAutoFillFeeDivisor = 1
staticconstexpr

Definition at line 41 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxPathfindsInProgress

int xrpl::RPC::Tuning::kMaxPathfindsInProgress = 2
staticconstexpr

Definition at line 42 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxPathfindJobCount

int xrpl::RPC::Tuning::kMaxPathfindJobCount = 50
staticconstexpr

Definition at line 43 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxJobQueueClients

int xrpl::RPC::Tuning::kMaxJobQueueClients = 500
staticconstexpr

Definition at line 44 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxValidatedLedgerAge

auto xrpl::RPC::Tuning::kMaxValidatedLedgerAge = std::chrono::minutes{2}
constexpr

Definition at line 45 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxRequestSize

int xrpl::RPC::Tuning::kMaxRequestSize = 1000000
staticconstexpr

Definition at line 46 of file src/xrpld/rpc/detail/Tuning.h.

◆ kBinaryPageLength

int xrpl::RPC::Tuning::kBinaryPageLength = 2048
staticconstexpr

Maximum number of pages in one response from a binary LedgerData request.

Definition at line 49 of file src/xrpld/rpc/detail/Tuning.h.

◆ kJsonPageLength

int xrpl::RPC::Tuning::kJsonPageLength = 256
staticconstexpr

Maximum number of pages in one response from a Json LedgerData request.

Definition at line 52 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxSrcCur

int xrpl::RPC::Tuning::kMaxSrcCur = 18
staticconstexpr

Maximum number of source currencies allowed in a path find request.

Definition at line 62 of file src/xrpld/rpc/detail/Tuning.h.

◆ kMaxAutoSrcCur

int xrpl::RPC::Tuning::kMaxAutoSrcCur = 88
staticconstexpr

Maximum number of auto source currencies in a path find request.

Definition at line 65 of file src/xrpld/rpc/detail/Tuning.h.