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

Method SetGenesis

core/headerchain.go:447–449  ·  view source on GitHub ↗

SetGenesis sets a new genesis block header for the chain

(head *types.Header)

Source from the content-addressed store, hash-verified

445
446// SetGenesis sets a new genesis block header for the chain
447func (hc *HeaderChain) SetGenesis(head *types.Header) {
448 hc.genesisHeader = head
449}
450
451// Config retrieves the header chain's chain configuration.
452func (hc *HeaderChain) Config() *configs.ChainConfig { return hc.config }

Callers 1

ResetWithGenesisBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected