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

View File

@@ -767,7 +767,8 @@ bool BlockManager::FlushChainstateBlockFile(int tip_height)
if (cursor) { if (cursor) {
return FlushBlockFile(cursor->file_num, /*fFinalize=*/false, /*finalize_undo=*/false); 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() uint64_t BlockManager::CalculateCurrentUsage()