X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fwallet.cpp;h=331069b483a8395128955f00ecdd06cb9fafc5da;hb=d3de168c1c3c8ef0edf8c479bbbe520250687f70;hp=2502f8f56ba4627bef7e14b2f99d783d2f9869fc;hpb=a2bdc7a6c33409df800b8ffcc14b5e8e2d5eb0a8;p=novacoin.git diff --git a/src/wallet.cpp b/src/wallet.cpp index 2502f8f..331069b 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1474,7 +1474,7 @@ bool CWallet::CreateTransaction(const vector >& vecSend, CW } // sub-cent change is moved to fee - if (nChange > 0 && nChange < MIN_TXOUT_AMOUNT) + if (nChange > 0 && nChange < CENT) { nFeeRet += nChange; nChange = 0; @@ -1535,6 +1535,7 @@ bool CWallet::CreateTransaction(const vector >& vecSend, CW int64 nPayFee = nTransactionFee * (1 + (int64)nBytes / 1000); bool fAllowFree = CTransaction::AllowFree(dPriority); + // Disable free transactions until 1 July 2014 if (!fTestNet && wtxNew.nTime < FEE_SWITCH_TIME) { fAllowFree = false; @@ -1851,9 +1852,9 @@ bool CWallet::CreateCoinStake(const CKeyStore& keystore, unsigned int nBits, int return error("CreateCoinStake : exceeded coinstake size limit"); // Check enough fee is paid - if (nMinFee < txNew.GetMinFee() - MIN_TX_FEE) + if (nMinFee < txNew.GetMinFee(1, false, GMF_BLOCK, nBytes, CENT) - CENT) { - nMinFee = txNew.GetMinFee() - MIN_TX_FEE; + nMinFee = txNew.GetMinFee(1, false, GMF_BLOCK, nBytes, CENT) - CENT; continue; // try signing again } else