Skip to content

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 added do-not-merge v7.0.0-beta.clean Clean release post Holesky rescue labels Feb 26, 2025
@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

Labels

do-not-merge v7.0.0-beta.clean Clean release post Holesky rescue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants