Skip to content

Commit 65e9287

Browse files
committed
Note that we may want to apply HTLC deletes to the upcoming set of HTLCs
1 parent e64287f commit 65e9287

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
@@ -4396,6 +4396,9 @@ where
43964396
amount_msat,
43974397
});
43984398

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

0 commit comments

Comments
 (0)