mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
fix: use variable for slots per epoch in CL (#6864)
Some network might have different `SLOTS_PER_EPOCH` configs instead of the currently hardcoded `32`.
This commit is contained in:
parent
4079347dab
commit
cb6878cd7d
@ -127,7 +127,7 @@ func startSentinel(cliCtx *cli.Context, cfg lcCli.ConsensusClientCliCfg, beaconS
|
|||||||
ForkDigest: forkDigest,
|
ForkDigest: forkDigest,
|
||||||
FinalizedRoot: beaconState.FinalizedCheckpoint().Root,
|
FinalizedRoot: beaconState.FinalizedCheckpoint().Root,
|
||||||
FinalizedEpoch: beaconState.FinalizedCheckpoint().Epoch,
|
FinalizedEpoch: beaconState.FinalizedCheckpoint().Epoch,
|
||||||
HeadSlot: beaconState.FinalizedCheckpoint().Epoch * 32,
|
HeadSlot: beaconState.FinalizedCheckpoint().Epoch * cfg.BeaconCfg.SlotsPerEpoch,
|
||||||
HeadRoot: beaconState.FinalizedCheckpoint().Root,
|
HeadRoot: beaconState.FinalizedCheckpoint().Root,
|
||||||
}, handshake.FullClientRule)
|
}, handshake.FullClientRule)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user