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

Method Header

types/block.go:448–448  ·  view source on GitHub ↗

TODO: fix it.

()

Source from the content-addressed store, hash-verified

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.
451func (b *Block) Body() *Body { return &Body{b.transactions} }

Callers 15

TimestampMethod · 0.95
ImpeachmentMethod · 0.95
OffsetTimeMethod · 0.80
makeHeaderChainFunction · 0.80
TestHeaderVerificationFunction · 0.80
NewTxPoolFunction · 0.80
loopMethod · 0.80
resetMethod · 0.80
ValidateBodyMethod · 0.80

Calls 1

CopyHeaderFunction · 0.85

Tested by 11

TestHeaderVerificationFunction · 0.64
testBlockChainImportFunction · 0.64
TestBlockStorageFunction · 0.64
TestPartialBlockStorageFunction · 0.64
Test_InsertChainFunction · 0.64
HeaderByNumberMethod · 0.64
TestGetBlockHeadersFunction · 0.64
makeHeaderFetcherMethod · 0.64