mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Allow to shut down during txdb upgrade
This commit is contained in:
parent
00cb69bc86
commit
ae09d4583b
2 changed files with 6 additions and 2 deletions
|
|
@ -371,6 +371,9 @@ bool CCoinsViewDB::Upgrade() {
|
|||
CDBBatch batch(db);
|
||||
while (pcursor->Valid()) {
|
||||
boost::this_thread::interruption_point();
|
||||
if (ShutdownRequested()) {
|
||||
break;
|
||||
}
|
||||
std::pair<unsigned char, uint256> key;
|
||||
if (pcursor->GetKey(key) && key.first == DB_COINS) {
|
||||
CCoins old_coins;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue