multi: add AddPendingChannel to peer interface
The funding manager has been updated to use `AddPendingChannel`. Note that we track the pending channel before it's confirmed as the peer may have a block height in the future(from our view), thus they may start operating in this channel before we consider it as fully open. The mocked peers have been updated to implement the new interface method.
This commit is contained in:
6 files changed
+46
-1
No files matched your search
@@ -672,6 +672,12 @@ func (s *mockServer) AddNewChannel(channel *channeldb.OpenChannel,
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *mockServer) AddPendingChannel(_ lnwire.ChannelID,
|
||||
cancel <-chan struct{}) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *mockServer) WipeChannel(*wire.OutPoint) {}
|
||||
|
||||
func (s *mockServer) LocalFeatures() *lnwire.FeatureVector {
|
||||
|
||||
Reference in new issue
Block a user