26std::optional<bilingual_str>
32 if (
auto mb = argsman.
GetIntArg(
"-maxmempool")) {
35 if (
auto mb = argsman.
GetIntArg(
"-maxmempool")) {
36 constexpr bool is_32bit{
sizeof(
void *) == 4};
39 "be over %i MB on 32-bit systems",
45 if (
auto hours = argsman.
GetIntArg(
"-mempoolexpiry")) {
46 mempool_opts.
expiry = std::chrono::hours{*hours};
49 if (argsman.
IsArgSet(
"-minrelaytxfee")) {
54 argsman.
GetArg(
"-minrelaytxfee",
""));
62 if (argsman.
IsArgSet(
"-dustrelayfee")) {
67 argsman.
GetArg(
"-dustrelayfee",
""));
77 ? std::optional<unsigned>{argsman.
GetIntArg(
"-datacarriersize",
86 "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 GetChainTypeString() const
Return the chain type string.
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)
static constexpr int MAX_32BIT_MEMPOOL_MB
Maximum mempool size on 32-bit systems.
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.