Skip to content

Commit

Permalink
fix: variable slots per epoch in light client (erigontech#6868)
Browse files Browse the repository at this point in the history
Missed a spot in erigontech#6864, my bad.
  • Loading branch information
filoozom authored Feb 13, 2023
1 parent ef502af commit 22bf78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/lightclient/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func runLightClientNode(cliCtx *cli.Context) error {
ForkDigest: forkDigest,
FinalizedRoot: state.FinalizedCheckpoint().Root,
FinalizedEpoch: state.FinalizedCheckpoint().Epoch,
HeadSlot: state.FinalizedCheckpoint().Epoch * 32,
HeadSlot: state.FinalizedCheckpoint().Epoch * cfg.BeaconCfg.SlotsPerEpoch,
HeadRoot: state.FinalizedCheckpoint().Root,
}, handshake.LightClientRule)
if err != nil {
Expand Down

0 comments on commit 22bf78b

Please sign in to comment.