Skip to content

Commit 82e48d2

Browse files
fjahrryanofsky
andcommitted
blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
1 parent 73700fb commit 82e48d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node/blockstorage.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ bool BlockManager::FlushChainstateBlockFile(int tip_height)
767767
if (cursor) {
768768
return FlushBlockFile(cursor->file_num, /*fFinalize=*/false, /*finalize_undo=*/false);
769769
}
770-
return false;
770+
// No need to log warnings in this case.
771+
return true;
771772
}
772773

773774
uint64_t BlockManager::CalculateCurrentUsage()

0 commit comments

Comments
 (0)