Skip to content

Commit

Permalink
blockstorage: Let FlushChainstateBlockFile return true in case of mis…
Browse files Browse the repository at this point in the history
…sing cursor

Co-authored-by: Ryan Ofsky <ryan@ofsky.org>
  • Loading branch information
fjahr and ryanofsky committed Oct 3, 2023
1 parent 26c815b commit 0081d12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node/blockstorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,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()
Expand Down

0 comments on commit 0081d12

Please sign in to comment.