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

Method CurrentHeader

core/chain_indexer.go:39–39  ·  view source on GitHub ↗

CurrentHeader retrieves the latest locally known header.

()

Source from the content-addressed store, hash-verified

37type ChainIndexerChain interface {
38 // CurrentHeader retrieves the latest locally known header.
39 CurrentHeader() *types.Header
40
41 // SubscribeChainHeadEvent subscribes to new head header notifications.
42 // cf. https://github.com/ethereum/go-ethereum/pull/17826

Callers 4

StartMethod · 0.65
SetHeadMethod · 0.65
RollbackMethod · 0.65
CurrentHeaderMethod · 0.65

Implementers 1

BlockChaincore/blockchain.go

Calls

no outgoing calls

Tested by

no test coverage detected