Skip to content

Commit

Permalink
blockFrom should use blocksInSnapshots + 1
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed Aug 30, 2024
1 parent 03c7177 commit 82bbe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turbo/snapshotsync/freezeblocks/bsc_snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (br *BlockRetire) retireBscBlocks(ctx context.Context, minBlockNum uint64,
} else {
minimumBlob = chapelMinSegFrom
}
blockFrom := max(blockReader.FrozenBscBlobs(), minimumBlob)
blockFrom := max(blockReader.FrozenBscBlobs()+1, minimumBlob)
blocksRetired := false
for _, snap := range blockReader.BscSnapshots().Types() {
if maxBlockNum <= blockFrom || maxBlockNum-blockFrom < snaptype.Erigon2MergeLimit {
Expand Down

0 comments on commit 82bbe34

Please sign in to comment.