mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-09 12:12:41 +01:00
Make RewindBlockIndex interruptible
This commit is contained in:
@@ -4243,7 +4243,7 @@ bool CChainState::RewindBlockIndex(const CChainParams& params)
|
||||
|
||||
CValidationState state;
|
||||
// Loop until the tip is below nHeight, or we reach a pruned block.
|
||||
while (true) {
|
||||
while (!ShutdownRequested()) {
|
||||
{
|
||||
LOCK(cs_main);
|
||||
// Make sure nothing changed from under us (this won't happen because RewindBlockIndex runs before importing/network are active)
|
||||
|
||||
Reference in New Issue
Block a user