Skip to content

Commit

Permalink
fix: unittest and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Jan 29, 2025
1 parent 4f17fab commit 4c20b3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sync/evmdownloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ func (d *EVMDownloader) Download(ctx context.Context, fromBlock uint64, download
d.log.Error("error getting last finalized block: ", err)
continue
}
lastFinalizedBlockNumber := lastFinalizedBlock.Number.Uint64()
// lastFinalizedBlock can't be > lastBlock
lastFinalizedBlockNumber := min(lastBlock, lastFinalizedBlock.Number.Uint64())

requestToBlock := toBlock
if toBlock >= lastBlock {
Expand Down

0 comments on commit 4c20b3f

Please sign in to comment.