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

@@ -23,7 +23,7 @@ ToMemPool(CMutableTransaction& tx)
LOCK(cs_main);
CValidationState state;
return AcceptToMemoryPool(mempool, state, tx, false, NULL, false);
return AcceptToMemoryPool(mempool, state, tx, false, NULL, true, false);
}
BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain100Setup)