Skip to content

Commit

Permalink
fix(taiko-client): fix an issue for Pacaya block TimeShift (#18962)
Browse files Browse the repository at this point in the history
Co-authored-by: Gavin “yoghurt” Yu <guoyu960223@gmail.com>
  • Loading branch information
YoGhurt111 and Gavin “yoghurt” Yu authored Feb 19, 2025
1 parent ddfa310 commit 500b366
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (i *BlocksInserterPacaya) InsertBlocks(
return fmt.Errorf("failed to calculate difficulty: %w", err)
}
timestamp := meta.GetLastBlockTimestamp()
for i := len(meta.GetBlocks()) - 1; i >= 0; i-- {
for i := len(meta.GetBlocks()) - 1; i > j; i-- {
timestamp = timestamp - uint64(meta.GetBlocks()[i].TimeShift)
}

Expand Down

0 comments on commit 500b366

Please # to comment.