funding: ensure the chan policy max htlc size is below max pay size
This commit is contained in:
parent
c943d85019
commit
9b3385e87d
@ -2359,6 +2359,9 @@ 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.
|
||||||
|
Loading…
Reference in New Issue
Block a user