Skip to content

Commit ff95850

Browse files
committed
Note that we may want to apply HTLC deletes to the upcoming set of HTLCs
1 parent 40c41b2 commit ff95850

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4168,6 +4168,9 @@ where
41684168
amount_msat,
41694169
});
41704170

4171+
// TODO: HTLC removals are released from the holding cell at the same time
4172+
// as HTLC additions, so if HTLC additions are applied here, so should HTLC removals.
4173+
// This would allow us to make better use of channel liquidity.
41714174
let holding_cell_htlcs = self.holding_cell_htlc_updates.iter().filter_map(|htlc| {
41724175
if let &HTLCUpdateAwaitingACK::AddHTLC { amount_msat, .. } = htlc {
41734176
Some(HTLCAmountDirection { outbound: true, amount_msat })

0 commit comments

Comments
 (0)