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

Method StateRoot

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

Source from the content-addressed store, hash-verified

438func (b *Block) LogsBloom() Bloom { return b.header.LogsBloom }
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 }

Callers 15

TestBlockEncodingFunction · 0.95
insertChainMethod · 0.95
dumpFunction · 0.95
DumpBlockMethod · 0.95
GenerateChainFunction · 0.80
loadLastStateMethod · 0.80
SetHeadMethod · 0.80
FastSyncCommitHeadMethod · 0.80
StateMethod · 0.80
StatePrivMethod · 0.80
repairMethod · 0.80
HasBlockAndStateMethod · 0.80

Calls

no outgoing calls

Tested by 8

TestBlockEncodingFunction · 0.76
testBlockChainImportFunction · 0.64
TestTrieForkGCFunction · 0.64
TestLargeReorgTrieGCFunction · 0.64
testGetNodeDataFunction · 0.64
TestSyncStateFunction · 0.64