diff options
| author | Pieter Wuille <[email protected]> | 2019-02-13 17:20:56 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2019-02-24 18:55:21 -0800 |
| commit | 241b2c74ac8c4c3000e778554da1271e3f293e5d (patch) | |
| tree | e0547aea25d2417b8657ed83e49d3f0e6c440297 /src/validation.cpp | |
| parent | Call RewindBlockIndex without cs_main held (diff) | |
| download | discoin-241b2c74ac8c4c3000e778554da1271e3f293e5d.tar.xz discoin-241b2c74ac8c4c3000e778554da1271e3f293e5d.zip | |
Make RewindBlockIndex interruptible
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index da92a1d1c..1de2cda5c 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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) |