Skip to content

Commit

Permalink
Fix for txindes/addressindex (#1209)
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Nov 14, 2022
1 parent ad07bf8 commit 70a3765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5308,7 +5308,8 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
}
// check level 3: check for inconsistencies during memory-only disconnect of tip blocks
if (nCheckLevel >= 3 && pindex == pindexState && (coins.DynamicMemoryUsage() + pcoinsTip->DynamicMemoryUsage()) <= nCoinCacheUsage) {
DisconnectResult res = DisconnectBlock(block, state, pindex, coins);
bool pfClean = false;
DisconnectResult res = DisconnectBlock(block, state, pindex, coins, &pfClean);
if (res == DISCONNECT_FAILED) {
return error("VerifyDB(): *** irrecoverable inconsistency in block data at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString());
}
Expand Down

0 comments on commit 70a3765

Please sign in to comment.