Skip to content

[stable2503] Backport #7075#7681

Merged
EgorPopelyaev merged 2 commits into
stable2503from
backport-7075-to-stable2503
Feb 25, 2025
Merged

[stable2503] Backport #7075#7681
EgorPopelyaev merged 2 commits into
stable2503from
backport-7075-to-stable2503

Conversation

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

Backport #7075 into stable2503 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 <yrong1997@gmail.com>
Co-authored-by: Vincent Geddes <vincent@snowfork.com>
Co-authored-by: Alistair Singh <alistair.singh7@gmail.com>
Co-authored-by: Vincent Geddes <117534+vgeddes@users.noreply.github.com>
(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
@paritytech-review-bot paritytech-review-bot Bot requested a review from a team February 24, 2025 08:55
@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.

@claravanstaden
Copy link
Copy Markdown
Contributor

PR is ready to merge, checked the tests.

acatangiu
acatangiu previously approved these changes Feb 24, 2025
bkontur
bkontur previously approved these changes Feb 24, 2025
Comment thread prdoc/pr_7075.prdoc Outdated
@acatangiu acatangiu dismissed stale reviews from bkontur and themself via 03f72fd February 24, 2025 12:21
@paritytech-review-bot paritytech-review-bot Bot requested a review from a team February 24, 2025 12:23
@bkontur bkontur enabled auto-merge (squash) February 25, 2025 10:29
@EgorPopelyaev EgorPopelyaev merged commit f314047 into stable2503 Feb 25, 2025
@EgorPopelyaev EgorPopelyaev deleted the backport-7075-to-stable2503 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