server: don't attempt to disable private channels

This commit is contained in:
Olaoluwa Osuntokun committed 2018-08-25 17:30:08 -07:00
1 parent 5130949604
commit 745cc3a8f4
1 file changed
+7
+7
View File
@@ -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)