diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-21 13:47:36 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-08-02 15:26:49 +0200 |
commit | fadc14e4f514e7167723285e0ac3d4a7149bbee6 (patch) | |
tree | b3299e7b8d83464984e05ed9a13b233af1eafe73 /src/mempool_args.cpp | |
parent | fa8a7f01fe1b6db98097021276ed5d929faadbec (diff) | |
download | bitcoin-fadc14e4f514e7167723285e0ac3d4a7149bbee6.tar.xz |
Remove ::dustRelayFee
Diffstat (limited to 'src/mempool_args.cpp')
-rw-r--r-- | src/mempool_args.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mempool_args.cpp b/src/mempool_args.cpp index f67eb993c8..745d7b0316 100644 --- a/src/mempool_args.cpp +++ b/src/mempool_args.cpp @@ -67,6 +67,16 @@ std::optional<bilingual_str> ApplyArgsManOptions(const ArgsManager& argsman, con LogPrintf("Increasing minrelaytxfee to %s to match incrementalrelayfee\n", mempool_opts.min_relay_feerate.ToString()); } + // Feerate used to define dust. Shouldn't be changed lightly as old + // implementations may inadvertently create non-standard transactions + if (argsman.IsArgSet("-dustrelayfee")) { + if (std::optional<CAmount> parsed = ParseMoney(argsman.GetArg("-dustrelayfee", ""))) { + mempool_opts.dust_relay_feerate = CFeeRate{parsed.value()}; + } else { + return AmountErrMsg("dustrelayfee", argsman.GetArg("-dustrelayfee", "")); + } + } + mempool_opts.require_standard = !argsman.GetBoolArg("-acceptnonstdtxn", !chainparams.RequireStandard()); if (!chainparams.IsTestChain() && !mempool_opts.require_standard) { return strprintf(Untranslated("acceptnonstdtxn is not currently supported for %s chain"), chainparams.NetworkIDString()); |