Embed PulseChain genesis

This commit is contained in:
Shane Bammel 2024-01-26 14:32:27 -06:00
parent 6b24f9f3b4
commit 2ed4a5b498
3 changed files with 24 additions and 1 deletions

View File

@ -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 = [

View File

@ -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
}

Binary file not shown.