Skip to content

Commit

Permalink
cl: fix caplin interop with lighthouse vc on gnosis (#12800)
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
taratorio authored Nov 20, 2024
1 parent 80e2c6f commit 46f44d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 2 additions & 0 deletions cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,7 @@ func holeskyConfig() BeaconChainConfig {

func gnosisConfig() BeaconChainConfig {
cfg := MainnetBeaconConfig
cfg.PresetBase = "gnosis"
cfg.MinGenesisTime = 1638968400
cfg.MinGenesisActiveValidatorCount = 4096
cfg.GenesisDelay = 6000
Expand Down Expand Up @@ -922,6 +923,7 @@ func gnosisConfig() BeaconChainConfig {

func chiadoConfig() BeaconChainConfig {
cfg := MainnetBeaconConfig
cfg.PresetBase = "gnosis"
cfg.MinGenesisTime = 1665396000
cfg.MinGenesisActiveValidatorCount = 6000
cfg.GenesisDelay = 300
Expand Down
6 changes: 1 addition & 5 deletions eth/stagedsync/stages/sync_mode.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package stages

import (
"fmt"
)

type Mode int8 // in which staged sync can run

const (
Expand Down Expand Up @@ -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)
}
}

0 comments on commit 46f44d4

Please sign in to comment.