Skip to content

Commit

Permalink
VerifyDB: always reconnect disconnected blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
watto-engineer committed Jan 11, 2023
1 parent 32ccff6 commit 1532da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4902,7 +4902,7 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
// Verify blocks in the best chain
if (nCheckDepth <= 0 || nCheckDepth > ::ChainActive().Height())
nCheckDepth = ::ChainActive().Height();
nCheckLevel = std::max(0, std::min(4, nCheckLevel));
nCheckLevel = nCheckLevel == 3 ? 4 : nCheckLevel;
LogPrintf("Verifying last %i blocks at level %i\n", nCheckDepth, nCheckLevel);
CCoinsViewCache coins(coinsview);
CBettingsView bettingsViewCache(bettingsView.get());
Expand Down

0 comments on commit 1532da3

Please sign in to comment.