Merge pull request #3804 from Roasbeef/revert-strict-payment
peer+funding: revert link level payment clamps
This commit is contained in:
commit
843b974d66
@ -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.
|
||||
|
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