Fee fixes

This commit is contained in:
Cozz Lovan
2014-07-05 07:30:06 +02:00
parent 1fedd65fcf
commit d88af56011
4 changed files with 24 additions and 10 deletions

View File

@@ -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