Revert "peer: clamp a link's max HTLC forwarding policy to current max HTLC pay size"
This reverts commit c943d85019.
This commit is contained in:
1 file changed
-6
@@ -537,9 +537,6 @@ func (p *peer) loadActiveChannels(chans []*channeldb.OpenChannel) (
|
|||||||
FeeRate: selfPolicy.FeeProportionalMillionths,
|
FeeRate: selfPolicy.FeeProportionalMillionths,
|
||||||
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),
|
TimeLockDelta: uint32(selfPolicy.TimeLockDelta),
|
||||||
}
|
}
|
||||||
if forwardingPolicy.MaxHTLC > MaxPaymentMSat {
|
|
||||||
forwardingPolicy.MaxHTLC = MaxPaymentMSat
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
peerLog.Warnf("Unable to find our forwarding policy "+
|
peerLog.Warnf("Unable to find our forwarding policy "+
|
||||||
"for channel %v, using default values",
|
"for channel %v, using default values",
|
||||||
@@ -1871,9 +1868,6 @@ out:
|
|||||||
FeeRate: defaultPolicy.FeeRate,
|
FeeRate: defaultPolicy.FeeRate,
|
||||||
TimeLockDelta: defaultPolicy.TimeLockDelta,
|
TimeLockDelta: defaultPolicy.TimeLockDelta,
|
||||||
}
|
}
|
||||||
if forwardingPolicy.MaxHTLC > MaxPaymentMSat {
|
|
||||||
forwardingPolicy.MaxHTLC = MaxPaymentMSat
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create the link and add it to the switch.
|
// Create the link and add it to the switch.
|
||||||
err = p.addLink(
|
err = p.addLink(
|
||||||
|
|||||||
Reference in new issue
Block a user