diff options
author | James O'Beirne <james.obeirne@pm.me> | 2023-05-24 21:10:12 -0400 |
---|---|---|
committer | James O'Beirne <james.obeirne@pm.me> | 2023-09-30 05:45:40 -0400 |
commit | c93ef43e4fd4fbc1263cdc9e98ae5856830fe89e (patch) | |
tree | 5d0a70ad74ac97a3ce63127b1a0508f97ebd9b14 | |
parent | b73d3bbd23220857bf17cbb6401275bf58013b72 (diff) |
bugfix: correct is_snapshot_cs in VerifyDB
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index a12f121dc3..a57a664786 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4281,7 +4281,7 @@ VerifyDBResult CVerifyDB::VerifyDB( bool skipped_l3_checks{false}; LogPrintf("Verification progress: 0%%\n"); - const bool is_snapshot_cs{!chainstate.m_from_snapshot_blockhash}; + const bool is_snapshot_cs{chainstate.m_from_snapshot_blockhash}; for (pindex = chainstate.m_chain.Tip(); pindex && pindex->pprev; pindex = pindex->pprev) { const int percentageDone = std::max(1, std::min(99, (int)(((double)(chainstate.m_chain.Height() - pindex->nHeight)) / (double)nCheckDepth * (nCheckLevel >= 4 ? 50 : 100)))); |