Versions in this module Expand all Collapse all v0 v0.0.3 Sep 11, 2024 Changes in this version + var ErrPeerExiting = fmt.Errorf("peer exiting") + type MockPeer struct + func (m *MockPeer) AddNewChannel(channel *NewChannel, cancel <-chan struct{}) error + func (m *MockPeer) AddPendingChannel(cid lnwire.ChannelID, cancel <-chan struct{}) error + func (m *MockPeer) Address() net.Addr + func (m *MockPeer) IdentityKey() *btcec.PublicKey + func (m *MockPeer) LocalFeatures() *lnwire.FeatureVector + func (m *MockPeer) PubKey() [33]byte + func (m *MockPeer) QuitSignal() <-chan struct{} + func (m *MockPeer) RemoteFeatures() *lnwire.FeatureVector + func (m *MockPeer) RemovePendingChannel(cid lnwire.ChannelID) error + func (m *MockPeer) SendMessage(sync bool, msgs ...lnwire.Message) error + func (m *MockPeer) SendMessageLazy(sync bool, msgs ...lnwire.Message) error + func (m *MockPeer) WipeChannel(op *wire.OutPoint) + type NewChannel struct + ChanOpts []lnwallet.ChannelOpt + type Peer interface + AddNewChannel func(newChan *NewChannel, cancel <-chan struct{}) error + AddPendingChannel func(cid lnwire.ChannelID, cancel <-chan struct{}) error + Address func() net.Addr + IdentityKey func() *btcec.PublicKey + LocalFeatures func() *lnwire.FeatureVector + PubKey func() [33]byte + QuitSignal func() <-chan struct{} + RemoteFeatures func() *lnwire.FeatureVector + RemovePendingChannel func(cid lnwire.ChannelID) error + SendMessage func(sync bool, msgs ...lnwire.Message) error + SendMessageLazy func(sync bool, msgs ...lnwire.Message) error + WipeChannel func(*wire.OutPoint)