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

inhibit LC sync while DAG is synced #6505

Merged
merged 1 commit into from
Aug 22, 2024
Merged

inhibit LC sync while DAG is synced #6505

merged 1 commit into from
Aug 22, 2024

Conversation

etan-status
Copy link
Contributor

Normally, running LC and DAG sync at same time is fine, but on tiny devnet where some peer may not support the LC data, we can end up in situation where peer gets disconnected when DAG is in sync, because DAG sync never uses any req/resp on local devnet (perfect nw conditions) so the LC sync over minutes removes the peer as sync is stuck.

We don't need to actively sync LC from network if DAG is already synced, preventing this specific low peer devnet issue (there are others still). LC is still locally updated when DAG finalized checkpoint advances.

Normally, running LC and DAG sync at same time is fine, but on tiny
devnet where some peer may not support the LC data, we can end up in
situation where peer gets disconnected when DAG is in sync, because
DAG sync never uses any req/resp on local devnet (perfect nw conditions)
so the LC sync over minutes removes the peer as sync is stuck.

We don't need to actively sync LC from network if DAG is already synced,
preventing this specific low peer devnet issue (there are others still).
LC is still locally updated when DAG finalized checkpoint advances.
Copy link

Unit Test Results

         9 files  ±0    1 334 suites  ±0   30m 10s ⏱️ +53s
  5 064 tests ±0    4 716 ✔️ ±0  348 💤 ±0  0 ±0 
20 991 runs  ±0  20 587 ✔️ ±0  404 💤 ±0  0 ±0 

Results for commit 1252b69. ± Comparison against base commit 485ed83.

@etan-status
Copy link
Contributor Author

Tested on Holesky with additional trace logging to see that the inhibit fn result is properly computed and honored.

@tersec tersec merged commit bd09e4d into unstable Aug 22, 2024
11 checks passed
@tersec tersec deleted the dev/etan/lc-opt branch August 22, 2024 06:13
agnxsh added a commit that referenced this pull request Aug 24, 2024
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