diff --git a/silkworm/db/snapshots/repository.cpp b/silkworm/db/snapshots/repository.cpp index a2d9842ddc..425b0cf8b1 100644 --- a/silkworm/db/snapshots/repository.cpp +++ b/silkworm/db/snapshots/repository.cpp @@ -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 SnapshotRepository::missing_block_ranges() const {