diff options
author | Carl Dong <contact@carldong.me> | 2021-09-20 14:02:07 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-07 14:48:49 -0500 |
commit | 15f2e33bb3d1ad3bc997f6a84956337f46495091 (patch) | |
tree | f645b983981d41f2da59acd1e6c0f11c3e5a9830 /src/init.cpp | |
parent | 4da9c076d1cf12728730bb1f7e8906d4e9bfaba5 (diff) |
validation: VerifyDB only needs Consensus::Params
Previously we were passing in CChainParams, when VerifyDB only needed
the Consensus::Params subset.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<int64_t(*)()>(GetTime)); |