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

Fix lc execution header bug #14468

Merged

Conversation

Inspector-Butters
Copy link
Contributor

This should be reviewed after #14457 is merged.

What type of PR is this?
Bug fix

What does this PR do? Why is it needed?
This PR fixes a bug in core/light-client where the update.AttestedHeader.Execution and update.AttestedHeader.ExecutionBranch were being created based on current Block and not AttestedBlock.

specifically:

  • Adds tests for checking the AttestedHeader.Execution and AttestedHeader.ExecutionBranch.
  • Adds the AttestedBlock input parameter to the CreateNewLightClientUpdate, CreateNewLightClientOptimisticUpdate, and CreateNewLightClientFinalityUpdate in the core/light-client.
  • Adds the AttestedBlock input parameter to the same functions above, but in RPC/eth/light-client.
  • Passes the AttestedBlock from the LC handlers through to the core package.
  • Defines and uses the BlockToLightClientHeader function instead of calculating the headers manually in core/light-client
  • And generally applies the consensus specs to the CreateNewLightClientUpdate function.

Which issues(s) does this PR fix?
This PR is needed as part of #12991

beacon-chain/core/light-client/lightclient.go Outdated Show resolved Hide resolved
beacon-chain/core/light-client/lightclient.go Outdated Show resolved Hide resolved
beacon-chain/core/light-client/lightclient.go Outdated Show resolved Hide resolved
beacon-chain/core/light-client/lightclient.go Outdated Show resolved Hide resolved
beacon-chain/core/light-client/lightclient.go Show resolved Hide resolved
@rkapka rkapka enabled auto-merge October 2, 2024 19:24
rkapka
rkapka previously approved these changes Oct 2, 2024
auto-merge was automatically disabled October 2, 2024 23:28

Head branch was pushed to by a user without write access

@rkapka rkapka enabled auto-merge October 3, 2024 17:24
@rkapka rkapka added this pull request to the merge queue Oct 3, 2024
Merged via the queue into prysmaticlabs:develop with commit 6af44a1 Oct 3, 2024
22 of 23 checks passed
@Inspector-Butters Inspector-Butters deleted the fix-lc-execution-header-bug branch October 3, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants