MCPcopy Create free account
hub / github.com/CPChain/chain / genesis

Method genesis

tests/block_test_util.go:137–149  ·  view source on GitHub ↗
(config *configs.ChainConfig)

Source from the content-addressed store, hash-verified

135}
136
137func (t *BlockTest) genesis(config *configs.ChainConfig) *core.Genesis {
138 return &core.Genesis{
139 Config: config,
140 Timestamp: t.json.Genesis.Timestamp.Uint64(),
141 ParentHash: t.json.Genesis.ParentHash,
142 ExtraData: t.json.Genesis.ExtraData,
143 GasLimit: t.json.Genesis.GasLimit,
144 GasUsed: t.json.Genesis.GasUsed,
145 Difficulty: t.json.Genesis.Difficulty,
146 Coinbase: t.json.Genesis.Coinbase,
147 Alloc: t.json.Pre,
148 }
149}
150
151/* See https://github.com/ethereum/tests/wiki/Blockchain-Tests-II
152

Callers 1

RunMethod · 0.95

Calls 1

Uint64Method · 0.80

Tested by

no test coverage detected