aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-09-15 16:30:32 -0400
committerCarl Dong <contact@carldong.me>2021-03-01 17:56:07 -0500
commit2bdf37fe187ba6f090a0f5299b74d5d82cde4697 (patch)
treea79c01107a74ee56de49d23047e2722c43113710 /src/init.cpp
parent31eac50c721dd3b0bd2347e76196bf16913e9be9 (diff)
validation: Pass in chainstate to CVerifyDB::VerifyDB
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index ea222f393e..d09bb290b9 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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");