From ee10b0a76cdd827026d4757bbb9284ecb9a93d4d Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Wed, 13 Jun 2018 19:38:41 -0700 Subject: [PATCH] rpcserver: set recently added disabled field to routing policies --- rpcserver.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcserver.go b/rpcserver.go index be7844ab..e703723b 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -3059,6 +3059,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo, MinHtlc: int64(c1.MinHTLC), FeeBaseMsat: int64(c1.FeeBaseMSat), FeeRateMilliMsat: int64(c1.FeeProportionalMillionths), + Disabled: c1.Flags&lnwire.ChanUpdateDisabled != 0, } } @@ -3068,6 +3069,7 @@ func marshalDbEdge(edgeInfo *channeldb.ChannelEdgeInfo, MinHtlc: int64(c2.MinHTLC), FeeBaseMsat: int64(c2.FeeBaseMSat), FeeRateMilliMsat: int64(c2.FeeProportionalMillionths), + Disabled: c2.Flags&lnwire.ChanUpdateDisabled != 0, } } @@ -3535,6 +3537,7 @@ func marshallTopologyChange(topChange *routing.TopologyChange) *lnrpc.GraphTopol MinHtlc: int64(channelUpdate.MinHTLC), FeeBaseMsat: int64(channelUpdate.BaseFee), FeeRateMilliMsat: int64(channelUpdate.FeeRate), + Disabled: channelUpdate.Disabled, }, AdvertisingNode: encodeKey(channelUpdate.AdvertisingNode), ConnectingNode: encodeKey(channelUpdate.ConnectingNode),