Skip to content

Commit 017a33a

Browse files
committed
Note that we may want to apply HTLC deletes to the upcoming set of HTLCs
1 parent 91dae0a commit 017a33a

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
@@ -4222,6 +4222,9 @@ where
42224222
amount_msat,
42234223
});
42244224

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

0 commit comments

Comments
 (0)