From 542ce6e24631a22451fabdb85d545add4024f553 Mon Sep 17 00:00:00 2001 From: Jonas Schnelli Date: Wed, 28 Jun 2017 21:28:11 +0200 Subject: [PATCH] Report [CANCELLED] instead of [DONE] when shut down during txdb upgrade --- src/txdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txdb.cpp b/src/txdb.cpp index c62f51cfc..002f6550b 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -417,6 +417,6 @@ bool CCoinsViewDB::Upgrade() { } db.WriteBatch(batch); uiInterface.SetProgressBreakAction(std::function()); - LogPrintf("[DONE].\n"); + LogPrintf("[%s].\n", ShutdownRequested() ? "CANCELLED" : "DONE"); return true; }