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

Method ParentHash

types/block.go:441–441  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

439func (b *Block) Coinbase() common.Address { return b.header.Coinbase }
440func (b *Block) StateRoot() common.Hash { return b.header.StateRoot }
441func (b *Block) ParentHash() common.Hash { return b.header.ParentHash }
442func (b *Block) TxsRoot() common.Hash { return b.header.TxsRoot }
443func (b *Block) ReceiptsRoot() common.Hash { return b.header.ReceiptsRoot }
444func (b *Block) Extra() []byte { return common.CopyBytes(b.header.Extra) }

Callers 15

insertChainMethod · 0.95
resetMethod · 0.80
ValidateBodyMethod · 0.80
repairMethod · 0.80
GetBlocksFromHashMethod · 0.80
RollbackMethod · 0.80
InsertReceiptChainMethod · 0.80
WriteBlockWithStateMethod · 0.80
ValidateBlockBodyMethod · 0.80
reorgMethod · 0.80

Calls

no outgoing calls

Tested by 3

testBlockChainImportFunction · 0.64
testReorgFunction · 0.64
insertChainMethod · 0.64