aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zander <thomas@thomaszander.se>2014-12-28 22:39:53 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-01-03 10:22:48 +0100
commit94b362dbd64ca39c642400cbae45743ef597a9b7 (patch)
tree0717364ea956c8ed097f7438fe1ade7252834926
parent221a38024aa095afe089e6adfbbe65a12654d520 (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 Rebased-From: 70477a0bdf6eb6d123ce256f064bbd3bc356c82a
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 69fb5e2588..c40a5e1672 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2986,6 +2986,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);