diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-03-19 15:19:29 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-03-19 15:15:56 +0100 |
commit | fad13b1612b5de16d94c78c1a464d431a4f770bf (patch) | |
tree | b8a47c9bb348a9efa180158678da3d4b19f422ac /src/amount.cpp | |
parent | faf756ae4ed63a31f073c09f3d0f25c13971cb98 (diff) |
[amount] Preempt issues with negative fee rates
Diffstat (limited to 'src/amount.cpp')
-rw-r--r-- | src/amount.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amount.cpp b/src/amount.cpp index d03ed5cfad..68806ff062 100644 --- a/src/amount.cpp +++ b/src/amount.cpp @@ -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; |