mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge #10998: Fix upgrade cancel warnings
861f9a2
Skip remainder of init if upgrade is cancelled (Matt Corallo)
Pull request description:
Based on #10919.
Without this, if you cancel upgrade, you get a needless error:
ERROR: VerifyDB(): *** irrecoverable inconsistency in block data at
Tree-SHA512: aa47665682c6605ada376f1c100ce17cf8c4312427929eb2e75306f2199b47cbcdb4e0d98d5efcfefff03947b2c0fcbd3aab487a4ed14d50607df685c91a03d0
This commit is contained in:
commit
2507fd5556
@ -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…
Reference in New Issue
Block a user