diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2023-10-03 11:15:15 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2023-10-06 19:43:32 +0200 |
commit | 82e48d20f1243fb7733e872a29661b151ab5d523 (patch) | |
tree | f467cf2982cec89a659b87136858a1cb584fe9a6 /src | |
parent | 73700fb554d6abad705d8f48aed4840fedb36c79 (diff) |
blockstorage: Let FlushChainstateBlockFile return true in case of missing cursor
Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/node/blockstorage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/blockstorage.cpp b/src/node/blockstorage.cpp index 6e4e018b4a..931db80274 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() |