blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
This commit is contained in:
1 file changed
+2
-1
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user