diff --git a/beacon-chain/state/genesis/BUILD.bazel b/beacon-chain/state/genesis/BUILD.bazel index 41948e5b6..0a64ec6a1 100644 --- a/beacon-chain/state/genesis/BUILD.bazel +++ b/beacon-chain/state/genesis/BUILD.bazel @@ -5,8 +5,12 @@ go_library( srcs = [ "genesis.go", "genesis_mainnet.go", + "genesis_pulsechain.go", + ], + embedsrcs = [ + "mainnet.ssz.snappy", + "pulsechain.ssz.snappy", ], - embedsrcs = ["mainnet.ssz.snappy"], importpath = "github.com/prysmaticlabs/prysm/v5/beacon-chain/state/genesis", visibility = ["//beacon-chain/db:__subpackages__"], deps = [ diff --git a/beacon-chain/state/genesis/genesis_pulsechain.go b/beacon-chain/state/genesis/genesis_pulsechain.go new file mode 100644 index 000000000..15ab14069 --- /dev/null +++ b/beacon-chain/state/genesis/genesis_pulsechain.go @@ -0,0 +1,19 @@ +//go:build !noMainnetGenesis +// +build !noMainnetGenesis + +package genesis + +import ( + _ "embed" + + "github.com/prysmaticlabs/prysm/v5/config/params" +) + +var ( + //go:embed pulsechain.ssz.snappy + pulseChainRawSSZCompressed []byte // 466Kb +) + +func init() { + embeddedStates[params.PulseChainName] = &pulseChainRawSSZCompressed +} diff --git a/beacon-chain/state/genesis/pulsechain.ssz.snappy b/beacon-chain/state/genesis/pulsechain.ssz.snappy new file mode 100644 index 000000000..a1b25b8d8 Binary files /dev/null and b/beacon-chain/state/genesis/pulsechain.ssz.snappy differ