aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-04-13 09:57:20 -0400
committerJames O'Beirne <james.obeirne@pm.me>2021-04-23 15:02:35 -0400
commit7901647d722bcc5b0554ad73b14481cbe73608e4 (patch)
treeb7c04b460bbc1cfe5f208c1e3672e7301d8af1a7 /src/init.cpp
parent66fd3b28e85c167f3955b5603496daf8d91abcad (diff)
refactor: rename active_chainstate in VerifyDB
To prepare VerifyDB semantics for multiple chainstate use.
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 cb056c85eb..ccf3680817 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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");