diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-12-22 20:11:26 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-12-23 14:19:38 +0100 |
commit | 9479f8dfcf0533366ba81d191b507a0326df66db (patch) | |
tree | 2b7515f830f6f8765a40ab31f7a032ecfe0e68f4 /src/validation.cpp | |
parent | 041331e1da23e4136fd046ed870cdcc177464176 (diff) |
Allow shutdown during LoadMempool, dump only when necessary
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index bd60bbfdcd..b36e901121 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -4076,6 +4076,8 @@ bool LoadMempool(void) } else { ++skipped; } + if (ShutdownRequested()) + return false; } std::map<uint256, CAmount> mapDeltas; file >> mapDeltas; |