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

Check correct fork version in LC sync protocol #3284

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

etan-status
Copy link
Contributor

  • Sync committee is determined by signature_slot
  • Signature fork version is determined by max(signature_slot, 1) - 1
  • Attested block fork version can be anything < signature_slot

Old logic incorrectly derived signature fork version from signature_slot and did not subtract a slot. Extended tests to check this edge case.

- Sync committee is determined by signature_slot
- Signature fork version is determined by max(signature_slot, 1) - 1
- Attested block fork version can be anything < signature_slot

Old logic incorrectly derived signature fork version from signature_slot
and did not subtract a slot. Extended tests to check this edge case.
etan-status added a commit to status-im/nimbus-eth2 that referenced this pull request Mar 8, 2023
etan-status added a commit to status-im/nimbus-eth2 that referenced this pull request Mar 8, 2023
EmilIvanichkovv added a commit to metacraft-labs/DendrETH that referenced this pull request Mar 9, 2023
zah pushed a commit to metacraft-labs/DendrETH that referenced this pull request Mar 9, 2023
Copy link
Collaborator

@dapplion dapplion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@hwwhww hwwhww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

this light client fork version thing is so unfortunately so tricky

@hwwhww hwwhww merged commit de57f2a into ethereum:dev Mar 16, 2023
@etan-status etan-status deleted the lc-forkversion branch March 16, 2023 11:53
bluele added a commit to datachainlab/ethereum-light-client-rs that referenced this pull request Oct 27, 2024
bluele added a commit to datachainlab/ethereum-light-client-rs that referenced this pull request Oct 27, 2024
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.

3 participants