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

Method CurrentHeader

protocols/cpc/syncer/syncer.go:135–135  ·  view source on GitHub ↗

CurrentHeader retrieves the head header from the local chain.

()

Source from the content-addressed store, hash-verified

133
134 // CurrentHeader retrieves the head header from the local chain.
135 CurrentHeader() *types.Header
136
137 // HasBlock verifies a block's presence in the local chain.
138 HasBlock(common.Hash, uint64) bool

Callers 3

testStatusMsgErrorsFunction · 0.65
addPeerMethod · 0.65
newTestPeerFunction · 0.65

Implementers 1

BlockChaincore/blockchain.go

Calls

no outgoing calls

Tested by 2

testStatusMsgErrorsFunction · 0.52
newTestPeerFunction · 0.52