Commit f012a667 authored by Aviator's avatar Aviator 💬

[QT] Fixed invalid "settxfee" command response

Thanks @ JSKitty | PIVX.org 
parent 2aa79c0e
......@@ -1896,9 +1896,10 @@ Value settxfee(const Array& params, bool fHelp)
// Amount
CAmount nAmount = 0;
if (params[0].get_real() != 0.0)
if (params[0].get_real() != 0.0){
nAmount = AmountFromValue(params[0]); // rejects 0.0 amounts
}else throw runtime_error("Invalid parameter. The TX Fee must be a value larger than 0");
payTxFee = CFeeRate(nAmount, 1000);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment