49 if (
auto mb =
argsman.GetIntArg(
"-maxmempool")) {
50 constexpr bool is_32bit{
sizeof(
void*) == 4};
61 if (
const auto arg{
argsman.GetArg(
"-incrementalrelayfee")}) {
70 if (
const auto arg{
argsman.GetArg(
"-minrelaytxfee")}) {
71 if (std::optional<CAmount> min_relay_feerate =
ParseMoney(*
arg)) {
80 LogInfo(
"Increasing minrelaytxfee to %s to match incrementalrelayfee",
mempool_opts.min_relay_feerate.ToString());
85 if (
const auto arg{
argsman.GetArg(
"-dustrelayfee")}) {
CChainParams defines various tweakable parameters of a given instance of the Bitcoin system.
std::string GetChainTypeString() const
Return the chain type string.
bool IsTestChain() const
If this chain is exclusively used for testing.
Fee rate in satoshis per virtualbyte: CAmount / vB the feerate is represented internally as FeeFrac.
static constexpr int MAX_32BIT_MEMPOOL_MB
Maximum mempool size on 32-bit systems.
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.
static constexpr bool DEFAULT_ACCEPT_NON_STD_TXN
Default for -acceptnonstdtxn.
is a home for simple string functions returning descriptive messages that are used in RPC and GUI int...
std::optional< CAmount > ParseMoney(const std::string &money_string)
Parse an amount denoted in full coins.
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
static const unsigned int MAX_OP_RETURN_RELAY
Default setting for -datacarriersize in vbytes.
static constexpr unsigned int DEFAULT_INCREMENTAL_RELAY_FEE
Default for -incrementalrelayfee, which sets the minimum feerate increase for mempool limiting or rep...
static constexpr bool DEFAULT_PERMIT_BAREMULTISIG
Default for -permitbaremultisig.
static const bool DEFAULT_ACCEPT_DATACARRIER
Default for -datacarrier.
static constexpr unsigned int DEFAULT_MIN_RELAY_TX_FEE
Default for -minrelaytxfee, minimum relay fee for transactions.
Options struct containing limit options for a CTxMemPool.
Options struct containing options for constructing a CTxMemPool.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.
static constexpr unsigned MAX_CLUSTER_COUNT_LIMIT
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.