diff options
author | Cozz Lovan <cozzlovan@yahoo.com> | 2014-07-05 07:30:06 +0200 |
---|---|---|
committer | Cozz Lovan <cozzlovan@yahoo.com> | 2014-07-08 05:09:19 +0200 |
commit | d88af560111863c3e9c1ae855dcc287f04dffb02 (patch) | |
tree | 2dead75696e53fd1804f5fe478506e34da625f76 /src/core.cpp | |
parent | 1fedd65fcf9ac04b70f0fa8cf6caa9629857d586 (diff) |
Fee fixes
Diffstat (limited to 'src/core.cpp')
-rw-r--r-- | src/core.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core.cpp b/src/core.cpp index 47f3b2a015..b56994ecf3 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -82,7 +82,12 @@ CFeeRate::CFeeRate(int64_t nFeePaid, size_t nSize) int64_t CFeeRate::GetFee(size_t nSize) const { - return nSatoshisPerK*nSize / 1000; + int64_t nFee = nSatoshisPerK*nSize / 1000; + + if (nFee == 0 && nSatoshisPerK > 0) + nFee = nSatoshisPerK; + + return nFee; } std::string CFeeRate::ToString() const |