validation: add CChainParams to ChainstateManager

This commit is contained in:
Anthony Towns
2022-01-18 21:34:16 +10:00
parent a8098f2cef
commit 69675ea4e7
5 changed files with 18 additions and 4 deletions

View File

@@ -1424,7 +1424,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
for (bool fLoaded = false; !fLoaded && !ShutdownRequested();) {
node.mempool = std::make_unique<CTxMemPool>(node.fee_estimator.get(), mempool_check_ratio);
node.chainman = std::make_unique<ChainstateManager>();
node.chainman = std::make_unique<ChainstateManager>(chainparams);
ChainstateManager& chainman = *node.chainman;
const bool fReset = fReindex;