From cb6878cd7de1894d95e5cbce918f169d22869f48 Mon Sep 17 00:00:00 2001 From: Philippe Schommers Date: Mon, 13 Feb 2023 21:51:33 +0100 Subject: [PATCH] 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`. --- cmd/erigon-cl/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/erigon-cl/main.go b/cmd/erigon-cl/main.go index 246327517..6240a6e2b 100644 --- a/cmd/erigon-cl/main.go +++ b/cmd/erigon-cl/main.go @@ -127,7 +127,7 @@ func startSentinel(cliCtx *cli.Context, cfg lcCli.ConsensusClientCliCfg, beaconS ForkDigest: forkDigest, FinalizedRoot: beaconState.FinalizedCheckpoint().Root, FinalizedEpoch: beaconState.FinalizedCheckpoint().Epoch, - HeadSlot: beaconState.FinalizedCheckpoint().Epoch * 32, + HeadSlot: beaconState.FinalizedCheckpoint().Epoch * cfg.BeaconCfg.SlotsPerEpoch, HeadRoot: beaconState.FinalizedCheckpoint().Root, }, handshake.FullClientRule) if err != nil {