Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
ellemouton committed May 16, 2023
1 parent e616b41 commit 7fbbf06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3784,6 +3784,11 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
}
}

var towerClient wtclient.TowerClientManager
if s.towerClientMgr != nil {
towerClient = s.towerClientMgr
}

// Now that we've established a connection, create a peer, and it to the
// set of currently active peers. Configure the peer with the incoming
// and outgoing broadcast deltas to prevent htlcs from being accepted or
Expand Down Expand Up @@ -3821,7 +3826,7 @@ func (s *server) peerConnected(conn net.Conn, connReq *connmgr.ConnReq,
Invoices: s.invoices,
ChannelNotifier: s.channelNotifier,
HtlcNotifier: s.htlcNotifier,
TowerClient: s.towerClientMgr,
TowerClient: towerClient,
DisconnectPeer: s.DisconnectPeer,
GenNodeAnnouncement: func(...netann.NodeAnnModifier) (
lnwire.NodeAnnouncement, error) {
Expand Down

0 comments on commit 7fbbf06

Please sign in to comment.