diff options
| author | Cozz Lovan <[email protected]> | 2014-07-05 07:30:06 +0200 |
|---|---|---|
| committer | Cozz Lovan <[email protected]> | 2014-07-08 05:09:19 +0200 |
| commit | d88af560111863c3e9c1ae855dcc287f04dffb02 (patch) | |
| tree | 2dead75696e53fd1804f5fe478506e34da625f76 /src/core.cpp | |
| parent | Merge pull request #4480 (diff) | |
| download | discoin-d88af560111863c3e9c1ae855dcc287f04dffb02.tar.xz discoin-d88af560111863c3e9c1ae855dcc287f04dffb02.zip | |
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 47f3b2a01..b56994ecf 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 |