diff options
author | Thomas Zander <thomas@thomaszander.se> | 2014-12-28 22:39:53 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-01-03 10:22:02 +0100 |
commit | 70477a0bdf6eb6d123ce256f064bbd3bc356c82a (patch) | |
tree | 1346df4c370259c6c6818de41863090f13336244 /src | |
parent | f55c5e9749b4d010003d667421f0313e75372ddb (diff) |
On close of splashscreen interrupt verifyDB
With the splashscreen being able to be closed it is possible to
shutdown during the lengthy verifyDB method. (Takes about a minute
on my machine). This change allows us to shutdown much sooner.
Github-Pull: #5557
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index f02a6a12ef..4fcb4f093a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3017,6 +3017,8 @@ bool CVerifyDB::VerifyDB(CCoinsView *coinsview, int nCheckLevel, int nCheckDepth } else nGoodTransactions += block.vtx.size(); } + if (ShutdownRequested()) + return true; } if (pindexFailure) return error("VerifyDB() : *** coin database inconsistencies found (last %i blocks, %i good transactions before that)\n", chainActive.Height() - pindexFailure->nHeight + 1, nGoodTransactions); |