From 191e11166100269a7070c416704d270e311f8cf5 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 13 Jun 2018 19:44:48 -0700 Subject: [PATCH] routing: include disabled field in topology updates --- routing/notifications.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routing/notifications.go b/routing/notifications.go index f4bbaec0..20ea43fb 100644 --- a/routing/notifications.go +++ b/routing/notifications.go @@ -285,6 +285,10 @@ type ChannelEdgeUpdate struct { // ConnectingNode is the node that the advertising node connects to. ConnectingNode *btcec.PublicKey + + // Disabled, if true, signals that the channel is unavailable to relay + // payments. + Disabled bool } // appendTopologyChange appends the passed update message to the passed @@ -359,6 +363,7 @@ func addToTopologyChange(graph *channeldb.ChannelGraph, update *TopologyChange, FeeRate: m.FeeProportionalMillionths, AdvertisingNode: aNode, ConnectingNode: cNode, + Disabled: m.Flags&lnwire.ChanUpdateDisabled != 0, } edgeUpdate.AdvertisingNode.Curve = nil edgeUpdate.ConnectingNode.Curve = nil