mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-21 11:10:36 +00:00
Embed PulseChain genesis
This commit is contained in:
parent
6b24f9f3b4
commit
2ed4a5b498
@ -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 = [
|
||||
|
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