0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor

Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
This commit is contained in:
Fabian Jahr 2023-10-03 11:15:15 +02:00
parent 73700fb554
commit 82e48d20f1
No known key found for this signature in database
GPG key ID: F13D1E9D890798CD

View file

@ -767,7 +767,8 @@ bool BlockManager::FlushChainstateBlockFile(int tip_height)
if (cursor) {
return FlushBlockFile(cursor->file_num, /*fFinalize=*/false, /*finalize_undo=*/false);
}
return false;
// No need to log warnings in this case.
return true;
}
uint64_t BlockManager::CalculateCurrentUsage()