diff options
| author | Jonas Schnelli <[email protected]> | 2018-04-13 21:20:29 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-08-02 08:10:49 +0200 |
| commit | af5fa82b676a36e60eda080ca0a946bdfffefd49 (patch) | |
| tree | b2812f7f0877c3a4a762bda5995b480f193b3c47 /src/txdb.cpp | |
| parent | Merge #13697: Support output descriptors in scantxoutset (diff) | |
| download | discoin-af5fa82b676a36e60eda080ca0a946bdfffefd49.tar.xz discoin-af5fa82b676a36e60eda080ca0a946bdfffefd49.zip | |
Allow quicker shutdowns during LoadBlockIndex()
Diffstat (limited to 'src/txdb.cpp')
| -rw-r--r-- | src/txdb.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index cbea55073..eda959e1a 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -255,6 +255,7 @@ bool CBlockTreeDB::LoadBlockIndexGuts(const Consensus::Params& consensusParams, // Load mapBlockIndex while (pcursor->Valid()) { boost::this_thread::interruption_point(); + if (ShutdownRequested()) return false; std::pair<char, uint256> key; if (pcursor->GetKey(key) && key.first == DB_BLOCK_INDEX) { CDiskBlockIndex diskindex; |