23std::optional<bilingual_str>
29 if (
auto mb =
argsman.GetIntArg(
"-maxmempool")) {
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"),
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.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
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.
bilingual_str Untranslated(std::string original)
Mark a bilingual_str as untranslated.