diff --git a/fundingmanager.go b/fundingmanager.go index f2fdb6c6..ac89aeaa 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -2391,9 +2391,6 @@ 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. diff --git a/peer.go b/peer.go index 4b3a259d..9996fd52 100644 --- a/peer.go +++ b/peer.go @@ -537,9 +537,6 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) ( FeeRate: selfPolicy.FeeProportionalMillionths, TimeLockDelta: uint32(selfPolicy.TimeLockDelta), } - if forwardingPolicy.MaxHTLC > MaxPaymentMSat { - forwardingPolicy.MaxHTLC = MaxPaymentMSat - } } else { peerLog.Warnf("Unable to find our forwarding policy "+ "for channel %v, using default values", @@ -1871,9 +1868,6 @@ out: FeeRate: defaultPolicy.FeeRate, TimeLockDelta: defaultPolicy.TimeLockDelta, } - if forwardingPolicy.MaxHTLC > MaxPaymentMSat { - forwardingPolicy.MaxHTLC = MaxPaymentMSat - } // Create the link and add it to the switch. err = p.addLink(