From 9b3385e87de8b2da51a9c979cd4e8ef770078ae2 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 4 Dec 2019 15:01:58 -0800 Subject: [PATCH] funding: ensure the chan policy max htlc size is below max pay size --- fundingmanager.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fundingmanager.go b/fundingmanager.go index e87dd9f1..55875734 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -2359,6 +2359,9 @@ func (f *fundingManager) annAfterSixConfs(completeChan *channeldb.OpenChannel, if fwdMaxHTLC > capacityMSat { fwdMaxHTLC = capacityMSat } + if fwdMaxHTLC > MaxPaymentMSat { + fwdMaxHTLC = MaxPaymentMSat + } // Create and broadcast the proofs required to make this channel // public and usable for other nodes for routing.