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

Method Genesis

core/blockchain.go:640–642  ·  view source on GitHub ↗

Genesis retrieves the chain's genesis block.

()

Source from the content-addressed store, hash-verified

638
639// Genesis retrieves the chain's genesis block.
640func (bc *BlockChain) Genesis() *types.Block {
641 return bc.genesisBlock
642}
643
644// GetBody retrieves a block body (transactions and uncles) from the database by
645// hash, caching it if found.

Callers 5

testStatusMsgErrorsFunction · 0.80
addPeerMethod · 0.80
NodeInfoMethod · 0.80
newTestPeerFunction · 0.80
TestGetBlockBodiesFunction · 0.80

Calls

no outgoing calls

Tested by 3

testStatusMsgErrorsFunction · 0.64
newTestPeerFunction · 0.64
TestGetBlockBodiesFunction · 0.64