Browse Source

[amount] Preempt issues with negative fee rates

0.13
MarcoFalke 9 years ago
parent
commit
fad13b1612
  1. 2
      src/amount.cpp

2
src/amount.cpp

@ -21,7 +21,7 @@ CAmount CFeeRate::GetFee(size_t nSize) const @@ -21,7 +21,7 @@ CAmount CFeeRate::GetFee(size_t nSize) const
{
CAmount nFee = nSatoshisPerK * nSize / 1000;
if (nFee == 0 && nSize != 0 && nSatoshisPerK != 0)
if (nFee == 0 && nSize != 0 && nSatoshisPerK > 0)
nFee = CAmount(1);
return nFee;

Loading…
Cancel
Save