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

feat: add Electra support to light client functions #14506

Merged
merged 10 commits into from
Oct 8, 2024
2 changes: 1 addition & 1 deletion beacon-chain/rpc/eth/light-client/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func createLightClientBootstrapDeneb(ctx context.Context, state state.BeaconStat
case version.Deneb:
branch = make([]string, fieldparams.NextSyncCommitteeBranchDepth)
case version.Electra:
branch = make([]string, fieldparams.NextSyncCommitteeBranchDepth+1)
branch = make([]string, fieldparams.NextSyncCommitteeBranchDepthElectra)
}
for i, proof := range currentSyncCommitteeProof {
branch[i] = hexutil.Encode(proof)
Expand Down
1 change: 1 addition & 0 deletions config/fieldparams/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ const (
MaxDeposits = 16 // Maximum number of deposits in a block.
MaxVoluntaryExits = 16 // Maximum number of voluntary exits in a block.
MaxBlsToExecutionChanges = 16 // Maximum number of bls to execution changes in a block.
NextSyncCommitteeBranchDepthElectra = 6 // NextSyncCommitteeBranchDepthElectra defines the depth of the next sync committee branch for Electra.
rupam-04 marked this conversation as resolved.
Show resolved Hide resolved
)
Loading