Skip to content

Commit 861f9a2

Browse files
committed
Skip remainder of init if upgrade is cancelled
1 parent 318392c commit 861f9a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/txdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,5 +422,5 @@ bool CCoinsViewDB::Upgrade() {
422422
db.CompactRange({DB_COINS, uint256()}, key);
423423
uiInterface.SetProgressBreakAction(std::function<void(void)>());
424424
LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE");
425-
return true;
425+
return !ShutdownRequested();
426426
}

0 commit comments

Comments
 (0)