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:
parent
d230cf89b9
commit
b3b34d9de2
6
peer.go
6
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(
|
||||
|
Loading…
Reference in New Issue
Block a user