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

Method HasHeader

core/blockchain.go:1890–1892  ·  view source on GitHub ↗

HasHeader checks if a block header is present in the database or not, caching it if present.

(hash common.Hash, number uint64)

Source from the content-addressed store, hash-verified

1888// HasHeader checks if a block header is present in the database or not, caching
1889// it if present.
1890func (bc *BlockChain) HasHeader(hash common.Hash, number uint64) bool {
1891 return bc.hc.HasHeader(hash, number)
1892}
1893
1894// GetBlockHashesFromHash retrieves a number of block hashes starting at a given
1895// hash, fetching towards the genesis block.

Callers 1

InsertReceiptChainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected