From 15f2e33bb3d1ad3bc997f6a84956337f46495091 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Mon, 20 Sep 2021 14:02:07 -0400 Subject: validation: VerifyDB only needs Consensus::Params Previously we were passing in CChainParams, when VerifyDB only needed the Consensus::Params subset. --- src/init.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init.cpp') diff --git a/src/init.cpp b/src/init.cpp index 67ae94eb2c..e6f00717fb 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1425,7 +1425,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) chainman, Assert(node.mempool.get()), fPruneMode, - chainparams, + chainparams.GetConsensus(), fReindexChainState, nBlockTreeDBCache, nCoinDBCache, @@ -1486,7 +1486,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) rv2 = VerifyLoadedChainstate(chainman, fReset, fReindexChainState, - chainparams, + chainparams.GetConsensus(), check_blocks, args.GetIntArg("-checklevel", DEFAULT_CHECKLEVEL), static_cast(GetTime)); -- cgit v1.2.3