From cced7546598d0051c21235101adbb99c34825240 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Sat, 12 Jan 2019 18:59:45 +0100 Subject: [PATCH] routing/router: when applying onion failure channel update, set max htlc In this commit, we ensure that when we update an edge as a result of a ChannelUpdate being returned from an onion failure, the max htlc portion of the channel update is included in the edge update. --- routing/router.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routing/router.go b/routing/router.go index 49038842..f69d817a 100644 --- a/routing/router.go +++ b/routing/router.go @@ -2079,6 +2079,7 @@ func (r *ChannelRouter) applyChannelUpdate(msg *lnwire.ChannelUpdate, ChannelFlags: msg.ChannelFlags, TimeLockDelta: msg.TimeLockDelta, MinHTLC: msg.HtlcMinimumMsat, + MaxHTLC: msg.HtlcMaximumMsat, FeeBaseMSat: lnwire.MilliSatoshi(msg.BaseFee), FeeProportionalMillionths: lnwire.MilliSatoshi(msg.FeeRate), })