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

POS efficient l1 polling #2506

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft

POS efficient l1 polling #2506

wants to merge 19 commits into from

Conversation

tbro
Copy link
Contributor

@tbro tbro commented Jan 29, 2025

Closes ##2491

This PR:

Asynchronously updates stake table cache by listening for L1Event::NewHead. This happens in a second update loop thread (added to L1Client.update_tasks). On each such event, stake table events starting at L1State.snapshot.head and ending on the block received in the NewHead event. This should be safe since L1State.snapshot.head in initialized to 0. So the first such event will be a large update from block 0 to current head. Following updates will be small.

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.

1 participant