mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-21 19:20:38 +00:00
Embed PulseChain genesis
This commit is contained in:
parent
6b24f9f3b4
commit
2ed4a5b498
@ -5,8 +5,12 @@ go_library(
|
|||||||
srcs = [
|
srcs = [
|
||||||
"genesis.go",
|
"genesis.go",
|
||||||
"genesis_mainnet.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",
|
importpath = "github.com/prysmaticlabs/prysm/v5/beacon-chain/state/genesis",
|
||||||
visibility = ["//beacon-chain/db:__subpackages__"],
|
visibility = ["//beacon-chain/db:__subpackages__"],
|
||||||
deps = [
|
deps = [
|
||||||
|
19
beacon-chain/state/genesis/genesis_pulsechain.go
Normal file
19
beacon-chain/state/genesis/genesis_pulsechain.go
Normal 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
|
||||||
|
}
|
BIN
beacon-chain/state/genesis/pulsechain.ssz.snappy
Normal file
BIN
beacon-chain/state/genesis/pulsechain.ssz.snappy
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user