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

Method SubscribeChainEvent

protocols/cpc/api_backend.go:159–161  ·  view source on GitHub ↗
(ch chan<- core.ChainEvent)

Source from the content-addressed store, hash-verified

157}
158
159func (b *APIBackend) SubscribeChainEvent(ch chan<- core.ChainEvent) event.Subscription {
160 return b.cpc.BlockChain().SubscribeChainEvent(ch)
161}
162
163func (b *APIBackend) SubscribeChainHeadEvent(ch chan<- core.ChainHeadEvent) event.Subscription {
164 return b.cpc.BlockChain().SubscribeChainHeadEvent(ch)

Callers

nothing calls this directly

Calls 2

SubscribeChainEventMethod · 0.65
BlockChainMethod · 0.65

Tested by

no test coverage detected