-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oracle: use WS instead of HTTP to get L1 blocks #160
Labels
enhancement
New feature or request
Comments
If it is a websocket how do we take care potentially missing events due to a faulty connection? with http we know where we left off by checkpointing. |
During the ws connection, we could do the same as we are doing now: save the current block number. If any error occurs during the ws connection, check for any missed blocks using an HTTP connection, and then resume using the ws connection. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, we are using a ticker to get new L1 blocks using an HTTP connection. It's not efficient and could confuse people, who are relying on 12s block timeframe.
Instead, we could subscribe to the headers: https://goethereumbook.org/block-subscribe/
The text was updated successfully, but these errors were encountered: