Moved CInPoint to core. Removed GetMinFee from CTransaction and made it a regular function in main.

This commit is contained in:
Eric Lombrozo
2013-01-08 03:42:22 -08:00
parent effc2770f5
commit 788536f175
4 changed files with 23 additions and 23 deletions

View File

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