server: don't attempt to disable private channels
This commit is contained in:
parent
5130949604
commit
745cc3a8f4
@ -3090,6 +3090,13 @@ func (s *server) watchChannelStatus() {
|
|||||||
// the status of closed channels around.
|
// the status of closed channels around.
|
||||||
newStatus := make(map[wire.OutPoint]activeStatus)
|
newStatus := make(map[wire.OutPoint]activeStatus)
|
||||||
for _, c := range channels {
|
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(
|
chanID := lnwire.NewChanIDFromOutPoint(
|
||||||
&c.FundingOutpoint)
|
&c.FundingOutpoint)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user