Skip to content

Commit

Permalink
Add retry logic for retrieving L1 finalised height
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Jun 26, 2024
1 parent d3c4dd0 commit c7d6dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions l1/l1.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ func (c *Client) finalisedHeight(ctx context.Context) uint64 {
return finalisedHeight
}
c.log.Debugw("Failed to retrieve L1 finalised height, retrying...", "error", err)
time.Sleep(c.resubscribeDelay)
}
}
}
Expand Down

0 comments on commit c7d6dfb

Please sign in to comment.