pass nBytes as parameter to GetMinFee(..)

This commit is contained in:
Cozz Lovan
2013-08-12 16:59:09 +02:00
committed by Wladimir J. van der Laan
parent 6ad44f5693
commit 8dfd8c62dc
3 changed files with 4 additions and 5 deletions

View File

@@ -1334,7 +1334,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64_t> >& vecSend,
// Check that enough fee is included
int64_t nPayFee = nTransactionFee * (1 + (int64_t)nBytes / 1000);
bool fAllowFree = AllowFree(dPriority);
int64_t nMinFee = GetMinFee(wtxNew, fAllowFree, GMF_SEND);
int64_t nMinFee = GetMinFee(wtxNew, nBytes, fAllowFree, GMF_SEND);
if (nFeeRet < max(nPayFee, nMinFee))
{
nFeeRet = max(nPayFee, nMinFee);