Skip to content

Commit

Permalink
temporary solution for lightclient ratelimit (erigontech#6907)
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov authored and finiteops committed Apr 10, 2023
1 parent 215ab3f commit f3e86ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/lightclient/lightclient/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (c *ChainTipSubscriber) StartLoop() {
var update *cltypes.LightClientOptimisticUpdate
update, err = c.rpc.SendLightClientOptimisticUpdateReqV1()
for err != nil {
time.Sleep(time.Second)
update, err = c.rpc.SendLightClientOptimisticUpdateReqV1()
}
if update.SignatureSlot < c.lastReceivedSlot {
Expand Down

0 comments on commit f3e86ca

Please sign in to comment.