From 35c156e27426edff17c24d2809419cdb2bf6994e Mon Sep 17 00:00:00 2001 From: battlmonstr Date: Wed, 24 Apr 2024 18:14:02 +0200 Subject: [PATCH] fix --- silkworm/db/snapshots/repository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {