aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorJordan Baczuk <Jordan.Baczuk@gmail.com>2019-02-08 07:06:44 -0700
committerJordan Baczuk <Jordan.Baczuk@gmail.com>2019-02-08 07:06:44 -0700
commitdfbf117bbb82c76c8cb60dba73ae7d653e3b8348 (patch)
tree2c113386868e4113fbd36e9b694f34dc943abcf0 /src/wallet
parent1a6036978e9d7fabafcd7a113a221d68bc1bd8db (diff)
downloadbitcoin-dfbf117bbb82c76c8cb60dba73ae7d653e3b8348.tar.xz
Move maxTxFee initialization to init.cpp
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/init.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 87cd264c3d..20d540c8db 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -127,21 +127,6 @@ bool WalletInit::ParameterInteraction() const
InitWarning(AmountHighWarn("-minrelaytxfee") + " " +
_("The wallet will avoid paying less than the minimum relay fee."));
- if (gArgs.IsArgSet("-maxtxfee"))
- {
- CAmount nMaxFee = 0;
- if (!ParseMoney(gArgs.GetArg("-maxtxfee", ""), nMaxFee))
- return InitError(AmountErrMsg("maxtxfee", gArgs.GetArg("-maxtxfee", "")));
- if (nMaxFee > HIGH_MAX_TX_FEE)
- InitWarning(_("-maxtxfee is set very high! Fees this large could be paid on a single transaction."));
- maxTxFee = nMaxFee;
- if (CFeeRate(maxTxFee, 1000) < ::minRelayTxFee)
- {
- return InitError(strprintf(_("Invalid amount for -maxtxfee=<amount>: '%s' (must be at least the minrelay fee of %s to prevent stuck transactions)"),
- gArgs.GetArg("-maxtxfee", ""), ::minRelayTxFee.ToString()));
- }
- }
-
return true;
}