From 390b9747932d531d42765a639856d2fdd24c804d Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Sat, 12 Jan 2019 18:59:45 +0100 Subject: [PATCH] server: set max htlc in ChannelUpdate createChannelUpdate This method is called to convert an EdgePolicy to a ChannelUpdate. We make sure to carry over the max_htlc value. Co-authored-by: Johan T. Halseth --- server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server.go b/server.go index 7ef8a147d..f12053c16 100644 --- a/server.go +++ b/server.go @@ -3104,6 +3104,7 @@ func createChannelUpdate(info *channeldb.ChannelEdgeInfo, ChannelFlags: policy.ChannelFlags, TimeLockDelta: policy.TimeLockDelta, HtlcMinimumMsat: policy.MinHTLC, + HtlcMaximumMsat: policy.MaxHTLC, BaseFee: uint32(policy.FeeBaseMSat), FeeRate: uint32(policy.FeeProportionalMillionths), ExtraOpaqueData: policy.ExtraOpaqueData,