23std::optional<bilingual_str>
29 if (
auto mb = argsman.
GetIntArg(
"-maxmempool")) {
33 if (
auto hours = argsman.
GetIntArg(
"-mempoolexpiry")) {
34 mempool_opts.
expiry = std::chrono::hours{*hours};
37 if (argsman.
IsArgSet(
"-minrelaytxfee")) {
42 argsman.
GetArg(
"-minrelaytxfee",
""));
50 if (argsman.
IsArgSet(
"-dustrelayfee")) {
55 argsman.
GetArg(
"-dustrelayfee",
""));
65 ? std::optional<unsigned>{argsman.
GetIntArg(
"-datacarriersize",
74 "acceptnonstdtxn is not currently supported for %s chain"),
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 NetworkIDString() const
Return the BIP70 network string (main, test or regtest)
bool RequireStandard() const
Policy: Filter transactions that do not match well-defined patterns.
bool IsTestChain() const
If this chain is exclusively used for testing.
Fee rate in satoshis per kilobyte: Amount / kB.
bilingual_str AmountErrMsg(const std::string &optname, const std::string &strValue)
std::optional< bilingual_str > ApplyArgsManOptions(const ArgsManager &argsman, const CChainParams &chainparams, MemPoolOptions &mempool_opts)
Overlay the options set in argsman on top of corresponding members in mempool_opts.
bool ParseMoney(const std::string &money_string, Amount &nRet)
Parse an amount denoted in full coins.
static constexpr bool DEFAULT_PERMIT_BAREMULTISIG
Default for -permitbaremultisig.
static const unsigned int MAX_OP_RETURN_RELAY
Default setting for nMaxDatacarrierBytes.
static const bool DEFAULT_ACCEPT_DATACARRIER
static constexpr Amount zero() noexcept
Options struct containing options for constructing a CTxMemPool.
int check_ratio
The ratio used to determine how often sanity checks will run.
std::optional< unsigned > max_datacarrier_bytes
A data carrying output is an unspendable output containing data.
CFeeRate dust_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.