aboutsummaryrefslogtreecommitdiff
path: root/src/txdb.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-08-06 21:25:04 -0400
committerMatt Corallo <git@bluematt.me>2017-08-07 08:31:41 -0700
commit861f9a28bcb2b7bcdb602d319a0fd844bf519a1d (patch)
tree9900b71eb6180ae9ffb41a445c113ae1d081d897 /src/txdb.cpp
parent318392ca7cda813f4117688ce622fcef252744bc (diff)
Skip remainder of init if upgrade is cancelled
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r--src/txdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp
index fd730c368a..7f7eb65673 100644
--- a/src/txdb.cpp
+++ b/src/txdb.cpp
@@ -422,5 +422,5 @@ bool CCoinsViewDB::Upgrade() {
db.CompactRange({DB_COINS, uint256()}, key);
uiInterface.SetProgressBreakAction(std::function<void(void)>());
LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE");
- return true;
+ return !ShutdownRequested();
}