mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
refactor: rename active_chainstate in VerifyDB
To prepare VerifyDB semantics for multiple chainstate use.
This commit is contained in:
parent
66fd3b28e8
commit
7901647d72
4 changed files with 30 additions and 19 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue