MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / BlockHash

Method BlockHash

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

BlockHash returns the parent hash field of the block header.

()

Source from the content-addressed store, hash-verified

158
159// BlockHash returns the parent hash field of the block header.
160func (b *Block) BlockHash() *hash.Hash {
161 return &b.SignedHeader.HSV.DataHash
162}
163
164// GenesisHash returns the parent hash field of the block header.
165func (b *Block) GenesisHash() *hash.Hash {

Callers 15

TestChainFunction · 0.45
addBlockFunction · 0.45
buildBlockIndexFunction · 0.45
NewChainWithContextFunction · 0.45
produceBlockMethod · 0.45
processBlocksMethod · 0.45
applyBlockMethod · 0.45
blockingFetchBlockMethod · 0.45
TestMultiChainFunction · 0.45
NewChainWithContextFunction · 0.45
pushBlockMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestChainFunction · 0.36
TestMultiChainFunction · 0.36
generateTestBlocksFunction · 0.36
TestAncestorFunction · 0.36
TestIndexFunction · 0.36