Only call TrimToSize once per reorg/blocks disconnect

This commit is contained in:
Matt Corallo
2015-10-02 14:20:38 -07:00
parent 794a8cec5d
commit d355cf4420
5 changed files with 22 additions and 13 deletions

View File

@@ -2863,6 +2863,6 @@ int CMerkleTx::GetBlocksToMaturity() const
bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree, bool fRejectAbsurdFee)
{
CValidationState state;
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, fRejectAbsurdFee);
return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, false, fRejectAbsurdFee);
}