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

create lc finalized header based on finalized block version #14457

Conversation

Inspector-Butters
Copy link
Contributor

What type of PR is this?
Other

What does this PR do? Why is it needed?
This PR adds more comprehensive tests for the core.lightclient.NewLightClientUpdateFromBeaconState function.
specifically:

  • Adds tests for NewLightClientFinalityUpdateFromBeaconState using a valid finalized block
  • Adds tests for NewLightClientFinalityUpdateFromBeaconState using a nil finalized block
  • Adds tests for NewLightClientFinalityUpdateFromBeaconState using a valid finalized block in the previous fork of the attested block
  • Changes the NewLightClientUpdateFromBeaconState function to create the finalized header based on the finalized block's version, not the attested block.

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

@Inspector-Butters Inspector-Butters changed the title create finalized header based on finalized block version create lc finalized header based on finalized block version Sep 18, 2024
@rkapka rkapka added this pull request to the merge queue Sep 30, 2024
Merged via the queue into prysmaticlabs:develop with commit 7786cb5 Sep 30, 2024
18 checks passed
@Inspector-Butters Inspector-Butters deleted the lc-attested-and-finalized-different-forks 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