From bf377d47e59d9adaca42d5b6df3505e5d3b24fc7 Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 24 May 2023 21:10:12 -0400 Subject: [PATCH] fix: correct is_snapshot_cs in VerifyDB Similar changes in bitcoin/bitcoin#27596: assumeutxo (2) --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index dd463bcc56..60cd6505bb 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4063,7 +4063,7 @@ bool CVerifyDB::VerifyDB( int reportDone = 0; LogPrintf("[0%%]..."); /* Continued */ - 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))));