File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -6336,9 +6336,3 @@ func (lc *LightningChannel) RemoteCommitHeight() uint64 {
6336
6336
func (lc * LightningChannel ) FwdMinHtlc () lnwire.MilliSatoshi {
6337
6337
return lc .localChanCfg .MinHTLC
6338
6338
}
6339
-
6340
- // MaxPendingAmount returns the maximum HTLC value that can be pending at
6341
- // any time over this channel.
6342
- func (lc * LightningChannel ) MaxPendingAmount () lnwire.MilliSatoshi {
6343
- return lc .localChanCfg .MaxPendingAmount
6344
- }
Original file line number Diff line number Diff line change @@ -1710,7 +1710,7 @@ out:
1710
1710
defaultPolicy := p .server .cc .routingPolicy
1711
1711
forwardingPolicy := & htlcswitch.ForwardingPolicy {
1712
1712
MinHTLC : fwdMinHtlc ,
1713
- MaxHTLC : lnChan . MaxPendingAmount () ,
1713
+ MaxHTLC : newChan . LocalChanCfg . MaxPendingAmount ,
1714
1714
BaseFee : defaultPolicy .BaseFee ,
1715
1715
FeeRate : defaultPolicy .FeeRate ,
1716
1716
TimeLockDelta : defaultPolicy .TimeLockDelta ,
You can’t perform that action at this time.
0 commit comments