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

Method SubscribeChainHeadEvent

protocols/cpc/api_backend.go:163–165  ·  view source on GitHub ↗
(ch chan<- core.ChainHeadEvent)

Source from the content-addressed store, hash-verified

161}
162
163func (b *APIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription {
164 return b.cpc.BlockChain().SubscribeChainHeadEvent(ch)
165}
166
167func (b *APIBackend) SubscribeChainSideEvent(ch chan<- core.ChainSideEvent) event.Subscription {
168 return b.cpc.BlockChain().SubscribeChainSideEvent(ch)

Callers

nothing calls this directly

Calls 2

BlockChainMethod · 0.65

Tested by

no test coverage detected