server: don't attempt to disable private channels

This commit is contained in:
Olaoluwa Osuntokun 2018-08-24 18:11:17 -07:00
parent 5130949604
commit 745cc3a8f4
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -3090,6 +3090,13 @@ func (s *server) watchChannelStatus() {
// the status of closed channels around.
newStatus := make(map[wire.OutPoint]activeStatus)
for _, c := range channels {
// We'll skip any private channels, as they
// aren't used for routing within the network
// by other nodes.
if c.ChannelFlags&lnwire.FFAnnounceChannel == 0 {
continue
}
chanID := lnwire.NewChanIDFromOutPoint(
&c.FundingOutpoint)