Browse Source

Skip remainder of init if upgrade is cancelled

0.15
Matt Corallo 8 years ago
parent
commit
861f9a28bc
  1. 2
      src/txdb.cpp

2
src/txdb.cpp

@ -422,5 +422,5 @@ bool CCoinsViewDB::Upgrade() { @@ -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();
}

Loading…
Cancel
Save