mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
validation: Pass in chainstate to CVerifyDB::VerifyDB
This commit is contained in:
parent
31eac50c72
commit
2bdf37fe18
4 changed files with 19 additions and 18 deletions
|
|
@ -1741,7 +1741,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
|
|||
// work when we allow VerifyDB to be parameterized by chainstate.
|
||||
if (&::ChainstateActive() == chainstate &&
|
||||
!CVerifyDB().VerifyDB(
|
||||
chainparams, &chainstate->CoinsDB(),
|
||||
chainparams, *chainstate, &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