refactor: rename active_chainstate in VerifyDB

To prepare VerifyDB semantics for multiple
chainstate use.
This commit is contained in:
James O'Beirne
2021-04-13 09:57:20 -04:00
parent 66fd3b28e8
commit 7901647d72
4 changed files with 30 additions and 19 deletions

View File

@@ -1554,7 +1554,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
// work when we allow VerifyDB to be parameterized by chainstate.
if (&::ChainstateActive() == chainstate &&
!CVerifyDB().VerifyDB(
chainparams, *chainstate, &chainstate->CoinsDB(),
*chainstate, chainparams, &chainstate->CoinsDB(),
args.GetArg("-checklevel", DEFAULT_CHECKLEVEL),
args.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS))) {
strLoadError = _("Corrupted block database detected");