Skip to content

Commit

Permalink
Fix chiado initialization (#12702)
Browse files Browse the repository at this point in the history
Co-authored-by: shota.silagadze <[email protected]>
  • Loading branch information
shotasilagadze and shotasilagadzetaal authored Nov 11, 2024
1 parent b207630 commit 159b74e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file added cl/clparams/initial_state/chiado.state.ssz
Binary file not shown.
5 changes: 4 additions & 1 deletion cl/clparams/initial_state/initial_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ var sepoliaStateSSZ []byte
//go:embed gnosis.state.ssz
var gnosisStateSSZ []byte

//go:embed chiado.state.ssz
var chiadoStateSSZ []byte

// Return genesis state
func GetGenesisState(network clparams.NetworkType) (*state.CachingBeaconState, error) {
_, config := clparams.GetConfigsByNetwork(network)
Expand All @@ -69,7 +72,7 @@ func GetGenesisState(network clparams.NetworkType) (*state.CachingBeaconState, e
return nil, err
}
case clparams.ChiadoNetwork:
if err := returnState.DecodeSSZ(gnosisStateSSZ, int(clparams.Phase0Version)); err != nil {
if err := returnState.DecodeSSZ(chiadoStateSSZ, int(clparams.Phase0Version)); err != nil {
return nil, err
}
case clparams.HoleskyNetwork:
Expand Down

0 comments on commit 159b74e

Please sign in to comment.