Skip to content

Commit 542ce6e

Browse files
committed
Report [CANCELLED] instead of [DONE] when shut down during txdb upgrade
1 parent 83fbea3 commit 542ce6e

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
@@ -417,6 +417,6 @@ bool CCoinsViewDB::Upgrade() {
417417
}
418418
db.WriteBatch(batch);
419419
uiInterface.SetProgressBreakAction(std::function<void(void)>());
420-
LogPrintf("[DONE].\n");
420+
LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE");
421421
return true;
422422
}

0 commit comments

Comments
 (0)