Revert "peer: clamp a link's max HTLC forwarding policy to current max HTLC pay size"

This reverts commit c943d850193a476be1bc37ed922d1954cf040948.
This commit is contained in:
Olaoluwa Osuntokun 2019-12-06 15:10:25 -08:00
parent d230cf89b9
commit b3b34d9de2
No known key found for this signature in database
GPG Key ID: BC13F65E2DC84465

@ -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(