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

Method SubscribeSyncStatus

protocols/cpc/syncer/api.go:163–166  ·  view source on GitHub ↗

SubscribeSyncStatus creates a subscription that will broadcast new synchronisation updates. The given channel must receive interface values, the result can either

(status chan interface{})

Source from the content-addressed store, hash-verified

161// SubscribeSyncStatus creates a subscription that will broadcast new synchronisation updates.
162// The given channel must receive interface values, the result can either
163func (api *PublicDownloaderAPI) SubscribeSyncStatus(status chan interface{}) *SyncStatusSubscription {
164 api.installSyncSubscription <- status
165 return &SyncStatusSubscription{api: api, c: status}
166}

Callers 1

SyncingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected