mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-14 16:42:50 +02:00
Allow to shut down during txdb upgrade
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user