From 46f44d430eb693d5ecae57dab8d1037c5bfcfd3d Mon Sep 17 00:00:00 2001 From: milen <94537774+taratorio@users.noreply.github.com> Date: Wed, 20 Nov 2024 10:32:41 +0000 Subject: [PATCH] cl: fix caplin interop with lighthouse vc on gnosis (#12800) Lighthouse VC was throwing the below error when running a validator with Caplin on Chiado: ``` The minimal/mainnet spec type of the beacon node does not match the validator ``` After a bit of debugging I found that it was because Lighthouse expects the preset base to be set to "gnosis" --- cl/clparams/config.go | 2 ++ eth/stagedsync/stages/sync_mode.go | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/cl/clparams/config.go b/cl/clparams/config.go index b9b52f37722..61c62e4eddf 100644 --- a/cl/clparams/config.go +++ b/cl/clparams/config.go @@ -885,6 +885,7 @@ func holeskyConfig() BeaconChainConfig { func gnosisConfig() BeaconChainConfig { cfg := MainnetBeaconConfig + cfg.PresetBase = "gnosis" cfg.MinGenesisTime = 1638968400 cfg.MinGenesisActiveValidatorCount = 4096 cfg.GenesisDelay = 6000 @@ -922,6 +923,7 @@ func gnosisConfig() BeaconChainConfig { func chiadoConfig() BeaconChainConfig { cfg := MainnetBeaconConfig + cfg.PresetBase = "gnosis" cfg.MinGenesisTime = 1665396000 cfg.MinGenesisActiveValidatorCount = 6000 cfg.GenesisDelay = 300 diff --git a/eth/stagedsync/stages/sync_mode.go b/eth/stagedsync/stages/sync_mode.go index f20c9ce7e67..b11be6b8416 100644 --- a/eth/stagedsync/stages/sync_mode.go +++ b/eth/stagedsync/stages/sync_mode.go @@ -1,9 +1,5 @@ package stages -import ( - "fmt" -) - type Mode int8 // in which staged sync can run const ( @@ -37,6 +33,6 @@ func ModeFromString(s string) Mode { //nolint case "UnknownMode": return ModeUnknown default: - panic(fmt.Sprintf("unexpected mode string: %s", s)) + panic("unexpected mode string: " + s) } }