builder icon indicating copy to clipboard operation
builder copied to clipboard

Increase sync size to 1s to avoid hitting 429 too many requests issue

Open madjarevicn opened this issue 3 years ago • 2 comments

📝 Summary

Increased a delay from 0.5s to 1s in order to avoid hitting rate limit on flashbots api.

📚 References


madjarevicn avatar Dec 07 '22 16:12 madjarevicn

You probably want to change this limiter: rate.NewLimiter(rate.Every(time.Millisecond), 510), to a second instead. Both should be configurable, either through a constant (build time) or configuration

Ruteri avatar Dec 07 '22 17:12 Ruteri

Fyi, the rate limit is now 450 blocks / 5 minutes, so the appropriate internal limit works be 3 block submissions within 2 seconds.

metachris avatar Dec 25 '22 13:12 metachris