Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages the p2p protocol
func NewManager ¶
func NewManager(cfg *config.Config, dag *blockdag.BlockDAG, netAdapter *netadapter.NetAdapter, addressManager *addressmanager.AddressManager, txPool *mempool.TxPool, connectionManager *connmanager.ConnectionManager) (*Manager, error)
NewManager creates a new instance of the p2p protocol manager
func (*Manager) AddTransaction ¶
AddTransaction adds transaction to the mempool and propagates it.
func (*Manager) IBDPeer ¶
IBDPeer returns the currently active IBD peer. Returns nil if we aren't currently in IBD
Click to show internal directories.
Click to hide internal directories.