Pass mempool reference to chainstate constructor

This commit is contained in:
MarcoFalke 2020-07-28 07:40:49 +02:00
parent 862fde88be
commit fa0572d0f3
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
7 changed files with 55 additions and 37 deletions

View file

@ -18,8 +18,9 @@ BOOST_FIXTURE_TEST_SUITE(validation_flush_tests, BasicTestingSetup)
//!
BOOST_AUTO_TEST_CASE(getcoinscachesizestate)
{
CTxMemPool mempool;
BlockManager blockman{};
CChainState chainstate{blockman};
CChainState chainstate{mempool, blockman};
chainstate.InitCoinsDB(/*cache_size_bytes*/ 1 << 10, /*in_memory*/ true, /*should_wipe*/ false);
WITH_LOCK(::cs_main, chainstate.InitCoinsCache(1 << 10));
CTxMemPool tx_pool{};