Skip to content
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

lib: Create simple block watcher without blockstream #27

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

victorges
Copy link
Member

When running this against Arbitrum Goerli, the blockstream cannot really keep up with all the blocks
being generated by Arbitrum.

So what happens is that each iteration gets longer and longer, taking up to 20 hours to reconcile blocks
after leaving it running for a couple days (meaning: no rounds initialized for that period).

This creates a simpler version of the block streamer which doesn't stream blocks at all, it just fetches the
latest and calls the callback if it changed. This is all that the roundInitializer actually needs, since the
callback just gets the latest block anyway and only uses the number from it.

@victorges victorges merged commit 18f2354 into master Aug 28, 2023
1 check passed
@victorges victorges deleted the vg/feat/goerli-devnet branch August 28, 2023 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants