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

Method RefHeader

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

Source from the content-addressed store, hash-verified

445func (b *Block) Dpor() DporSnap { return b.header.Dpor }
446
447func (b *Block) RefHeader() *Header { return b.header } // TODO: fix it.
448func (b *Block) Header() *Header { return CopyHeader(b.header) }
449
450// Body returns the non-header content of the block.

Callers 12

SetTimestampMethod · 0.95
verifyBasicImpeachMethod · 0.95
GenerateChainFunction · 0.80
insertChainMethod · 0.80
validateBlockMethod · 0.80
composePrepareMsgMethod · 0.80
traceBlockMethod · 0.80
insertMethod · 0.80
returnBlocksLoopMethod · 0.80

Calls

no outgoing calls

Tested by 2

returnBlocksLoopMethod · 0.64