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

Method CurrentHeader

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

CurrentHeader retrieves the current header from the local chain.

()

Source from the content-addressed store, hash-verified

38
39 // CurrentHeader retrieves the current header from the local chain.
40 CurrentHeader() *types.Header
41
42 // CurrentBlock retrieves the current head block of the canonical chain. The
43 // block is retrieved from the blockchain's internal cache.

Callers 10

HeaderByNumberMethod · 0.65
GetSnapshotMethod · 0.65
GetProposersMethod · 0.65
CreateImpeachBlockMethod · 0.65
SetChainMethod · 0.65
initMinerAndValidatorMethod · 0.65
PbftStatusMethod · 0.65
verifySignaturesMethod · 0.65
buildCpuProofWorkMethod · 0.65
buildMemoryProofWorkMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected