mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
funding: ensure the chan policy max htlc size is below max pay size
This commit is contained in:
@@ -2359,6 +2359,9 @@ 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.
|
||||
|
Reference in New Issue
Block a user