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

reduce LC optsync latency #4002

Merged
merged 4 commits into from
Aug 25, 2022
Merged

reduce LC optsync latency #4002

merged 4 commits into from
Aug 25, 2022

Conversation

etan-status
Copy link
Contributor

The optimistic sync spec was updated since the LC based optsync module
was introduced. It is no longer necessary to wait for the justified
checkpoint to have execution enabled; instead, any block is okay to be
optimistically imported to the EL client, as long as its parent block
has execution enabled. Complex syncing logic has been removed, and the
LC optsync module will now follow gossip directly, reducing the latency
when using this module. Note that because this is now based on gossip
instead of using sync manager / request manager, that individual blocks
may be missed. However, EL clients should recover from this by fetching
missing blocks themselves.

The optimistic sync spec was updated since the LC based optsync module
was introduced. It is no longer necessary to wait for the justified
checkpoint to have execution enabled; instead, any block is okay to be
optimistically imported to the EL client, as long as its parent block
has execution enabled. Complex syncing logic has been removed, and the
LC optsync module will now follow gossip directly, reducing the latency
when using this module. Note that because this is now based on gossip
instead of using sync manager / request manager, that individual blocks
may be missed. However, EL clients should recover from this by fetching
missing blocks themselves.
@github-actions
Copy link

github-actions bot commented Aug 19, 2022

Unit Test Results

       12 files  ±  0       856 suites   - 4   1h 12m 32s ⏱️ - 13m 49s
  1 980 tests  -   7    1 833 ✔️  -   7  147 💤 ±0  0 ±0 
10 654 runs   - 28  10 464 ✔️  - 28  190 💤 ±0  0 ±0 

Results for commit 35982c7. ± Comparison against base commit bac5061.

♻️ This comment has been updated with latest results.

@etan-status
Copy link
Contributor Author

Tested manually with nimbus_light_client, as well as with nimbus_beacon_node on a fresh Sepolia sync with --light-client.

@etan-status
Copy link
Contributor Author

etan-status commented Aug 20, 2022

@etan-status etan-status enabled auto-merge (squash) August 24, 2022 22:39
@etan-status etan-status merged commit 9180f09 into unstable Aug 25, 2022
@etan-status etan-status deleted the dev/etan/lc-optsync branch August 25, 2022 03:54
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