Skip to content

[stable2409] Backport #7075#7679

Merged
EgorPopelyaev merged 2 commits intostable2409from
backport-7075-to-stable2409
Feb 25, 2025
Merged

[stable2409] Backport #7075#7679
EgorPopelyaev merged 2 commits intostable2409from
backport-7075-to-stable2409

Conversation

@paritytech-cmd-bot-polkadot-sdk
Copy link
Copy Markdown
Contributor

Backport #7075 into stable2409 from claravanstaden.

See the documentation on how to use this bot.

# Description

Adds support for the upcoming Ethereum Electra upgrade, while
maintaining backwards compatibility for the current Deneb fork.

## Integration

Relayers should be updated to send updated Electra consensus data
structures.

## Review Notes

The [Ethereum Electra hard-fork
consensus](https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/light-client/sync-protocol.md)
changes affecting the Ethereum light client are mainly isolated to the
[Generalized
Indexes](https://github.com/protolambda/eth2.0-ssz/blob/master/specs/navigation/generalized_indices.md)
of data structures changing. Before Electra, these values were hardcoded
in config. For Electra, these values change and needed to the updated.
Methods were added to return the correct g-index for the current fork
version.

Data structures used by the Ethereum client did not change in this
hard-fork. The BeaconState container has been updated with additional
changes, but because the on-chain code does not reference the
BeaconState directly (only indirectly through merkle proofs), it is not
a concern. Off-chain relayers use the BeaconState to generate proofs,
and so the relayer code has been updated accordingly.

### Companion PR for off-chain relayers
Snowfork/snowbridge#1283

---------

Co-authored-by: claravanstaden <Cats 4 life!>
Co-authored-by: Ron <[email protected]>
Co-authored-by: Vincent Geddes <[email protected]>
Co-authored-by: Alistair Singh <[email protected]>
Co-authored-by: Vincent Geddes <[email protected]>
(cherry picked from commit dd7562a)
@github-actions github-actions bot added the A3-backport Pull request is already reviewed well in another branch. label Feb 24, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This pull request is amending an existing release. Please proceed with extreme caution,
as to not impact downstream teams that rely on the stability of it. Some things to consider:

  • Backports are only for 'patch' or 'minor' changes. No 'major' or other breaking change.
  • Should be a legit fix for some bug, not adding tons of new features.
  • Must either be already audited or not need an audit.
Emergency Bypass

If you really need to bypass this check: add validate: false to each crate
in the Prdoc where a breaking change is introduced. This will release a new major
version of that crate and all its reverse dependencies and basically break the release.

@paritytech-review-bot paritytech-review-bot bot requested a review from a team February 24, 2025 08:56
@acatangiu acatangiu closed this Feb 24, 2025
@acatangiu acatangiu reopened this Feb 24, 2025
acatangiu
acatangiu previously approved these changes Feb 24, 2025
@acatangiu
Copy link
Copy Markdown
Contributor

@EgorPopelyaev this is good to merge

Comment thread prdoc/pr_7075.prdoc Outdated
@EgorPopelyaev EgorPopelyaev merged commit 882682a into stable2409 Feb 25, 2025
@EgorPopelyaev EgorPopelyaev deleted the backport-7075-to-stable2409 branch February 25, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A3-backport Pull request is already reviewed well in another branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants