mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-02 12:43:00 +02:00
blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user