|
|
@ -1463,7 +1463,7 @@ void CWallet::ReacceptWalletTransactions() |
|
|
|
CWalletTx& wtx = *(item.second); |
|
|
|
CWalletTx& wtx = *(item.second); |
|
|
|
|
|
|
|
|
|
|
|
LOCK(mempool.cs); |
|
|
|
LOCK(mempool.cs); |
|
|
|
wtx.AcceptToMemoryPool(false, maxTxFee); |
|
|
|
wtx.AcceptToMemoryPool(maxTxFee); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2502,8 +2502,7 @@ bool CWallet::CommitTransaction(CWalletTx& wtxNew, CReserveKey& reservekey, CCon |
|
|
|
if (fBroadcastTransactions) |
|
|
|
if (fBroadcastTransactions) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Broadcast
|
|
|
|
// Broadcast
|
|
|
|
if (!wtxNew.AcceptToMemoryPool(false, maxTxFee)) |
|
|
|
if (!wtxNew.AcceptToMemoryPool(maxTxFee)) { |
|
|
|
{ |
|
|
|
|
|
|
|
// This must not fail. The transaction has already been signed and recorded.
|
|
|
|
// This must not fail. The transaction has already been signed and recorded.
|
|
|
|
LogPrintf("CommitTransaction(): Error: Transaction not valid\n"); |
|
|
|
LogPrintf("CommitTransaction(): Error: Transaction not valid\n"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -3652,8 +3651,8 @@ int CMerkleTx::GetBlocksToMaturity() const |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree, CAmount nAbsurdFee) |
|
|
|
bool CMerkleTx::AcceptToMemoryPool(const CAmount& nAbsurdFee) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CValidationState state; |
|
|
|
CValidationState state; |
|
|
|
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, false, nAbsurdFee); |
|
|
|
return ::AcceptToMemoryPool(mempool, state, *this, true, NULL, false, nAbsurdFee); |
|
|
|
} |
|
|
|
} |
|
|
|