Skip to content

Commit fa3b4f9

Browse files
author
MarcoFalke
committed
validation: Make VerifyDB level 4 interruptible
1 parent fa1d580 commit fa3b4f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/validation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4313,8 +4313,7 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
43134313
nGoodTransactions += block.vtx.size();
43144314
}
43154315
}
4316-
if (ShutdownRequested())
4317-
return true;
4316+
if (ShutdownRequested()) return true;
43184317
}
43194318
if (pindexFailure)
43204319
return error("VerifyDB(): *** coin database inconsistencies found (last %i blocks, %i good transactions before that)\n", ::ChainActive().Height() - pindexFailure->nHeight + 1, nGoodTransactions);
@@ -4338,6 +4337,7 @@ bool CVerifyDB::VerifyDB(const CChainParams& chainparams, CCoinsView *coinsview,
43384337
return error("VerifyDB(): *** ReadBlockFromDisk failed at %d, hash=%s", pindex->nHeight, pindex->GetBlockHash().ToString());
43394338
if (!::ChainstateActive().ConnectBlock(block, state, pindex, coins, chainparams))
43404339
return error("VerifyDB(): *** found unconnectable block at %d, hash=%s (%s)", pindex->nHeight, pindex->GetBlockHash().ToString(), state.ToString());
4340+
if (ShutdownRequested()) return true;
43414341
}
43424342
}
43434343

0 commit comments

Comments
 (0)