From 745cc3a8f4922dd4031f736a0ccb277229c3ad15 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 24 Aug 2018 18:11:17 -0700 Subject: [PATCH] server: don't attempt to disable private channels --- server.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.go b/server.go index 74a85a2f..9bd996f5 100644 --- a/server.go +++ b/server.go @@ -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)