Merge pull request #3804 from Roasbeef/revert-strict-payment
peer+funding: revert link level payment clamps
This commit is contained in:
2 files changed
-9
No files matched your search
@@ -2391,9 +2391,6 @@ func (f *fundingManager) annAfterSixConfs(completeChan *channeldb.OpenChannel,
|
|||||||
if fwdMaxHTLC > capacityMSat {
|
if fwdMaxHTLC > capacityMSat {
|
||||||
fwdMaxHTLC = capacityMSat
|
fwdMaxHTLC = capacityMSat
|
||||||
}
|
}
|
||||||
if fwdMaxHTLC > MaxPaymentMSat {
|
|
||||||
fwdMaxHTLC = MaxPaymentMSat
|
|
||||||
}
|
|
||||||
|
|
||||||
// Create and broadcast the proofs required to make this channel
|
// Create and broadcast the proofs required to make this channel
|
||||||
// public and usable for other nodes for routing.
|
// public and usable for other nodes for routing.
|
||||||
|
|||||||
@@ -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