diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-04-13 21:20:29 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2018-08-02 08:10:49 +0200 |
commit | af5fa82b676a36e60eda080ca0a946bdfffefd49 (patch) | |
tree | b2812f7f0877c3a4a762bda5995b480f193b3c47 /src/txdb.cpp | |
parent | f030410e88f11c5ff1ce6c80b463a1c7f6d39830 (diff) |
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 cbea550739..eda959e1a1 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; |