From 82e48d20f1243fb7733e872a29661b151ab5d523 Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Tue, 3 Oct 2023 11:15:15 +0200 Subject: [PATCH] blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor Co-authored-by: Ryan Ofsky --- src/node/blockstorage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp index 6e4e018b4a0..931db802740 100644 --- a/src/node/blockstorage.cpp +++ b/src/node/blockstorage.cpp @@ -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()