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

Method GetHeaderByHash

consensus/consensus.go:53–53  ·  view source on GitHub ↗

GetHeaderByHash retrieves a block header from the database by its hash.

(hash common.Hash)

Source from the content-addressed store, hash-verified

51
52 // GetHeaderByHash retrieves a block header from the database by its hash.
53 GetHeaderByHash(hash common.Hash) *types.Header
54
55 // GetBlock retrieves a block from the database by hash and number.
56 GetBlock(hash common.Hash, number uint64) *types.Block

Callers 2

GetHeaderByHashMethod · 0.65
GetSnapshotAtHashMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected