aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2018-04-13 21:20:29 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2018-08-02 08:10:49 +0200
commitaf5fa82b676a36e60eda080ca0a946bdfffefd49 (patch)
treeb2812f7f0877c3a4a762bda5995b480f193b3c47 /src/txdb.cpp
parentf030410e88f11c5ff1ce6c80b463a1c7f6d39830 (diff)
Allow quicker shutdowns during LoadBlockIndex()
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r--src/txdb.cpp1
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;