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

Light Client: Electra finality branch #14597

Merged
merged 4 commits into from
Nov 2, 2024
Merged

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Oct 31, 2024

No description provided.

@rkapka rkapka requested a review from a team as a code owner October 31, 2024 15:08
@rkapka rkapka requested review from prestonvanloon, nisdas and james-prysm and removed request for a team October 31, 2024 15:08
if err != nil {
return nil, err
}
finalityBranch = fb[:]
} else {
b, err := update.NextSyncCommitteeBranch()
Copy link
Contributor

@rupam-04 rupam-04 Oct 31, 2024

Choose a reason for hiding this comment

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

Suggested change
b, err := update.NextSyncCommitteeBranch()
scb, err := update.NextSyncCommitteeBranch()

Lets have this for consistency since you used scb before too

@@ -243,7 +239,7 @@ func NewLightClientUpdateFromBeaconState(
return result, nil
}

func CreateDefaultLightClientUpdate(currentSlot primitives.Slot) (interfaces.LightClientUpdate, error) {
func CreateDefaultLightClientUpdate(currentSlot primitives.Slot, attestedBlock interfaces.ReadOnlySignedBeaconBlock) (interfaces.LightClientUpdate, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we can pass attestedState here for lesser conflicts with #14585

@rupam-04
Copy link
Contributor

We should be applying the changes in CreateDefaultLightClientUpdate from beacon-chain/core/light-client/lightclient.go to the createDefaultLightClientUpdate function too in beacon-chain/db/kv/lightclient_test.go

@rkapka rkapka merged commit c7d52d7 into epf-light-client Nov 2, 2024
15 of 16 checks passed
@rkapka rkapka deleted the lc-finality-branch branch November 2, 2024 13:49
rkapka added a commit that referenced this pull request Nov 3, 2024
* extract from lc-p2p branch

* generate code

* trixy's review

* test fixes
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.

2 participants