mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
[amount] Preempt issues with negative fee rates
This commit is contained in:
parent
faf756ae4e
commit
fad13b1612
@ -21,7 +21,7 @@ CAmount CFeeRate::GetFee(size_t nSize) const
|
|||||||
{
|
{
|
||||||
CAmount nFee = nSatoshisPerK * nSize / 1000;
|
CAmount nFee = nSatoshisPerK * nSize / 1000;
|
||||||
|
|
||||||
if (nFee == 0 && nSize != 0 && nSatoshisPerK != 0)
|
if (nFee == 0 && nSize != 0 && nSatoshisPerK > 0)
|
||||||
nFee = CAmount(1);
|
nFee = CAmount(1);
|
||||||
|
|
||||||
return nFee;
|
return nFee;
|
||||||
|
Loading…
Reference in New Issue
Block a user