mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
[wallet, policy] ParameterInteraction: Don't allow 0 fee
This commit is contained in:
parent
faef293cf3
commit
fa4bfb4819
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue