Pass mempool reference to chainstate constructor

This commit is contained in:
MarcoFalke
2020-07-28 07:40:49 +02:00
parent 862fde88be
commit fa0572d0f3
7 changed files with 55 additions and 37 deletions

View File

@@ -1550,7 +1550,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
const int64_t load_block_index_start_time = GetTimeMillis();
try {
LOCK(cs_main);
chainman.InitializeChainstate();
chainman.InitializeChainstate(*Assert(node.mempool));
chainman.m_total_coinstip_cache = nCoinCacheUsage;
chainman.m_total_coinsdb_cache = nCoinDBCache;