Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
battlmonstr committed Apr 24, 2024
1 parent 0b449ef commit 35c156e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silkworm/db/snapshots/repository.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ BlockNum SnapshotRepository::max_block_available() const {
return 0;

auto& first = bundles_.begin()->second;
return (first.block_from() < first.block_to()) ? first.block_to() - 1 : first.block_from();
return first.block_to() - 1;
}

std::vector<BlockNumRange> SnapshotRepository::missing_block_ranges() const {
Expand Down

0 comments on commit 35c156e

Please sign in to comment.