From 8d492fadffa383fbad5d7125f9d81d93c49036e6 Mon Sep 17 00:00:00 2001 From: Peter Shugalev Date: Fri, 11 Nov 2022 22:30:46 +0100 Subject: [PATCH] Fix for txindes/addressindex --- src/validation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index cad5d46a78..a84c548d30 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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()); }