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

Add test flag to override SYNC_TOLERANCE_EPOCHS for range sync testing (#7030) #7045

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

michaelsproul
Copy link
Member

This is #7030 cherry-picked from unstable to release-v7.0.0.

I'm proposing we merge this to make the diff (and conflict resolution) clearer when we merge release-v7.0.0 back into unstable.

Best if we don't merge this PR with a squash, so the commit message can be preserved (this helps git).

…ing (#7030)

Related to #6880, an issue that's usually observed on local devnets with small number of nodes.

When testing range sync, I usually shutdown a node for some period of time and restart it again. However, if it's within `SYNC_TOLERANCE_EPOCHS` (8), Lighthouse would consider the node as synced, and if it may attempt to produce a block if requested by a validator - on a local devnet, nodes frequently produce blocks - when this happens, the node ends up producing a block that would revert finality and would get disconnected from peers immediately.

NOTE: This is PR#7030 cherry-picked from `unstable` to `release-v7.0.0`.

Run Lighthouse BN with this flag to override:

```
--sync-tolerance--epoch 0
```
@michaelsproul michaelsproul merged commit fe0cf9c into release-v7.0.0 Feb 26, 2025
29 checks passed
@michaelsproul michaelsproul deleted the sync-tolerance-epochs-backmerge branch February 26, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants