assert(new_db);// This is to prevent doing anything further with this wallet. The original file was deleted, but a backup exists.
m_database.reset();
m_database=std::move(new_db);
// Write existing records into the new DB
batch=m_database->MakeBatch();
boolbegan=batch->TxnBegin();
assert(began);// This is a critical error, the new db could not be written to. The original db exists as a backup, but we should not continue execution.
assert(false);// This is a critical error, the new db could not be written to. The original db exists as a backup, but we should not continue execution.
}
}
boolcommitted=batch->TxnCommit();
assert(committed);// This is a critical error, the new db could not be written to. The original db exists as a backup, but we should not continue execution.