Versions in this module Expand all Collapse all v0 v0.0.1 Sep 9, 2023 Changes in this version + func DisableLog() + func UseLogger(logger btclog.Logger) + type Config struct + Chain *blockchain.BlockChain + ChainParams *chaincfg.Params + DisableCheckpoints bool + FeeEstimator *mempool.FeeEstimator + MaxPeers int + PeerNotifier PeerNotifier + TxMemPool *mempool.TxPool + type PeerNotifier interface + AnnounceNewTransactions func(newTxs []*mempool.TxDesc) + RelayInventory func(invVect *wire.InvVect, data interface{}) + TransactionConfirmed func(tx *ltcutil.Tx) + UpdatePeerHeights func(latestBlkHash *chainhash.Hash, latestHeight int32, updateSource *peer.Peer) + type SyncManager struct + func New(config *Config) (*SyncManager, error) + func (sm *SyncManager) DonePeer(peer *peerpkg.Peer) + func (sm *SyncManager) IsCurrent() bool + func (sm *SyncManager) NewPeer(peer *peerpkg.Peer) + func (sm *SyncManager) Pause() chan<- struct{} + func (sm *SyncManager) ProcessBlock(block *ltcutil.Block, flags blockchain.BehaviorFlags) (bool, error) + func (sm *SyncManager) QueueBlock(block *ltcutil.Block, peer *peerpkg.Peer, done chan struct{}) + func (sm *SyncManager) QueueHeaders(headers *wire.MsgHeaders, peer *peerpkg.Peer) + func (sm *SyncManager) QueueInv(inv *wire.MsgInv, peer *peerpkg.Peer) + func (sm *SyncManager) QueueNotFound(notFound *wire.MsgNotFound, peer *peerpkg.Peer) + func (sm *SyncManager) QueueTx(tx *ltcutil.Tx, peer *peerpkg.Peer, done chan struct{}) + func (sm *SyncManager) Start() + func (sm *SyncManager) Stop() error + func (sm *SyncManager) SyncPeerID() int32