aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-03-19 15:19:29 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-03-19 15:15:56 +0100
commitfad13b1612b5de16d94c78c1a464d431a4f770bf (patch)
treeb8a47c9bb348a9efa180158678da3d4b19f422ac
parentfaf756ae4ed63a31f073c09f3d0f25c13971cb98 (diff)
downloadbitcoin-fad13b1612b5de16d94c78c1a464d431a4f770bf.tar.xz
[amount] Preempt issues with negative fee rates
-rw-r--r--src/amount.cpp2
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;