Skip to content

Commit c93ef43

Browse files
committed
bugfix: correct is_snapshot_cs in VerifyDB
1 parent b73d3bb commit c93ef43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4281,7 +4281,7 @@ VerifyDBResult CVerifyDB::VerifyDB(
42814281
bool skipped_l3_checks{false};
42824282
LogPrintf("Verification progress: 0%%\n");
42834283

4284-
const bool is_snapshot_cs{!chainstate.m_from_snapshot_blockhash};
4284+
const bool is_snapshot_cs{chainstate.m_from_snapshot_blockhash};
42854285

42864286
for (pindex = chainstate.m_chain.Tip(); pindex && pindex->pprev; pindex = pindex->pprev) {
42874287
const int percentageDone = std::max(1, std::min(99, (int)(((double)(chainstate.m_chain.Height() - pindex->nHeight)) / (double)nCheckDepth * (nCheckLevel >= 4 ? 50 : 100))));

0 commit comments

Comments
 (0)