Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
mempool_args.cpp File Reference
#include <node/mempool_args.h>
#include <kernel/mempool_limits.h>
#include <kernel/mempool_options.h>
#include <common/args.h>
#include <common/messages.h>
#include <consensus/amount.h>
#include <kernel/chainparams.h>
#include <logging.h>
#include <policy/feerate.h>
#include <policy/policy.h>
#include <tinyformat.h>
#include <txgraph.h>
#include <util/moneystr.h>
#include <util/translation.h>
#include <chrono>
#include <memory>
Include dependency graph for mempool_args.cpp:

Go to the source code of this file.

Classes

struct  MemPoolLimits
 Options struct containing limit options for a CTxMemPool. More...
struct  MemPoolOptions
 Options struct containing options for constructing a CTxMemPool. More...

Functions

util::Result< void > ApplyArgsManOptions (const ArgsManager &argsman, const CChainParams &chainparams, MemPoolOptions &mempool_opts)
 Overlay the options set in argsman on top of corresponding members in mempool_opts.
bilingual_str AmountErrMsg (const std::string &optname, const std::string &strValue)

Variables

static constexpr int MAX_32BIT_MEMPOOL_MB {500}
 Maximum mempool size on 32-bit systems.

Function Documentation

◆ AmountErrMsg()

bilingual_str common::AmountErrMsg ( const std::string & optname,
const std::string & strValue )

Definition at line 166 of file messages.cpp.

Here is the caller graph for this function:

◆ ApplyArgsManOptions()

util::Result< void > ApplyArgsManOptions ( const ArgsManager & argsman,
const CChainParams & chainparams,
kernel::MemPoolOptions & mempool_opts )
nodiscard

Overlay the options set in argsman on top of corresponding members in mempool_opts.

Returns an error if one was encountered.

Parameters
[in]argsmanThe ArgsManager in which to check set options.
[in,out]mempool_optsThe MemPoolOptions to modify according to argsman.

Definition at line 45 of file mempool_args.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MAX_32BIT_MEMPOOL_MB

int MAX_32BIT_MEMPOOL_MB {500}
staticconstexpr

Maximum mempool size on 32-bit systems.

Definition at line 30 of file mempool_args.cpp.