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

Method subscribe

protocols/cpc/filters/filter_system.go:189–193  ·  view source on GitHub ↗

subscribe installs the subscription in the event broadcast loop.

(sub *subscription)

Source from the content-addressed store, hash-verified

187
188// subscribe installs the subscription in the event broadcast loop.
189func (es *EventSystem) subscribe(sub *subscription) *Subscription {
190 es.install <- sub
191 <-sub.installed
192 return &Subscription{ID: sub.id, f: sub, es: es}
193}
194
195// SubscribeLogs creates a subscription that will write all logs matching the
196// given criteria to the given logs channel. Default value for the from and to

Callers 5

subscribeLogsMethod · 0.95
subscribePendingLogsMethod · 0.95
SubscribeNewHeadsMethod · 0.95
SubscribePendingTxsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected