aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2016-09-26 14:49:47 +0200
committerMarcoFalke <[email protected]>2016-09-26 14:44:24 +0200
commitfa4bfb48193a03d99d1dfdfd1e67b613293755bf (patch)
tree949302ec9c95a41582031acf7dc457f86f034d83 /src
parent[wallet] Add high transaction fee warnings (diff)
downloaddiscoin-fa4bfb48193a03d99d1dfdfd1e67b613293755bf.tar.xz
discoin-fa4bfb48193a03d99d1dfdfd1e67b613293755bf.zip
[wallet, policy] ParameterInteraction: Don't allow 0 fee
Diffstat (limited to 'src')
-rw-r--r--src/init.cpp2
-rw-r--r--src/wallet/wallet.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index b20675dd9..cb8da06d6 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -951,7 +951,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
if (mapArgs.count("-minrelaytxfee"))
{
CAmount n = 0;
- if (!ParseMoney(mapArgs["-minrelaytxfee"], n))
+ if (!ParseMoney(mapArgs["-minrelaytxfee"], n) || 0 == n)
return InitError(AmountErrMsg("minrelaytxfee", mapArgs["-minrelaytxfee"]));
// High fee check is done afterward in CWallet::ParameterInteraction()
::minRelayTxFee = CFeeRate(n);
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 50d63182a..a5bfde659 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -3492,7 +3492,7 @@ bool CWallet::ParameterInteraction()
if (mapArgs.count("-mintxfee"))
{
CAmount n = 0;
- if (!ParseMoney(mapArgs["-mintxfee"], n))
+ if (!ParseMoney(mapArgs["-mintxfee"], n) || 0 == n)
return InitError(AmountErrMsg("mintxfee", mapArgs["-mintxfee"]));
if (n > HIGH_TX_FEE_PER_KB)
InitWarning(AmountHighWarn("-mintxfee") + " " +