47 if (
auto hours = argsman.
GetIntArg(
"-mempoolexpiry")) mempool_opts.
expiry = std::chrono::hours{*hours};
51 if (argsman.
IsArgSet(
"-incrementalrelayfee")) {
52 if (std::optional<CAmount> inc_relay_fee =
ParseMoney(argsman.
GetArg(
"-incrementalrelayfee",
""))) {
59 if (argsman.
IsArgSet(
"-minrelaytxfee")) {
60 if (std::optional<CAmount> min_relay_feerate =
ParseMoney(argsman.
GetArg(
"-minrelaytxfee",
""))) {
74 if (argsman.
IsArgSet(
"-dustrelayfee")) {
75 if (std::optional<CAmount> parsed =
ParseMoney(argsman.
GetArg(
"-dustrelayfee",
""))) {
bool IsArgSet(const std::string &strArg) const
Return true if the given argument has been manually set.
int64_t GetIntArg(const std::string &strArg, int64_t nDefault) const
Return integer argument or default value.
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
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 kilovirtualbyte: CAmount / kvB.
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
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.
static constexpr bool DEFAULT_PERMIT_BAREMULTISIG
Default for -permitbaremultisig.
static const bool DEFAULT_ACCEPT_DATACARRIER
Default for -datacarrier.
Options struct containing limit options for a CTxMemPool.
int64_t descendant_count
The maximum allowed number of transactions in a package including the entry and its descendants.
int64_t descendant_size_vbytes
The maximum allowed size in virtual bytes of an entry and its descendants within a package.
int64_t ancestor_count
The maximum allowed number of transactions in a package including the entry and its ancestors.
int64_t ancestor_size_vbytes
The maximum allowed size in virtual bytes of an entry and its ancestors within a package.
Options struct containing options for constructing a CTxMemPool.
std::optional< unsigned > max_datacarrier_bytes
A data carrying output is an unspendable output containing data.
CFeeRate dust_relay_feerate
CFeeRate incremental_relay_feerate
bool permit_bare_multisig
CFeeRate min_relay_feerate
A fee rate smaller than this is considered zero fee (for relaying, mining and transaction creation)
std::chrono::seconds expiry
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.