Versions in this module Expand all Collapse all v1 v1.0.0 May 26, 2022 Changes in this version + type ChainMgr interface + IsCaughtUp func() bool + Start func() error + Stop func() + type ConsensusMgr interface + Start func() error + Stop func() + type Switch interface + DialPeerWithAddress func(addr *p2p.NetAddress) error + IsListening func() bool + Peers func() *p2p.PeerSet + Start func() error + Stop func() error + type SyncManager struct + func NewSyncManager(config *config.Config, chain *protocol.Chain, txPool *protocol.TxPool, ...) (*SyncManager, error) + func (sm *SyncManager) BestPeer() *peers.PeerInfo + func (sm *SyncManager) DialPeerWithAddress(addr *p2p.NetAddress) error + func (sm *SyncManager) GetNetwork() string + func (sm *SyncManager) GetPeerInfos() []*peers.PeerInfo + func (sm *SyncManager) IsCaughtUp() bool + func (sm *SyncManager) IsListening() bool + func (sm *SyncManager) PeerCount() int + func (sm *SyncManager) Start() error + func (sm *SyncManager) Stop() + func (sm *SyncManager) StopPeer(peerID string) error