Skip to content

Commit 241b2c7

Browse files
committed
Make RewindBlockIndex interruptible
1 parent 880ce7d commit 241b2c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4243,7 +4243,7 @@ bool CChainState::RewindBlockIndex(const CChainParams& params)
42434243

42444244
CValidationState state;
42454245
// Loop until the tip is below nHeight, or we reach a pruned block.
4246-
while (true) {
4246+
while (!ShutdownRequested()) {
42474247
{
42484248
LOCK(cs_main);
42494249
// Make sure nothing changed from under us (this won't happen because RewindBlockIndex runs before importing/network are active)

0 commit comments

Comments
 (0)