Skip to content

Commit 1ae5da1

Browse files
committed
Note that we may want to apply HTLC deletes to the upcoming set of HTLCs
1 parent 6c6361d commit 1ae5da1

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
@@ -4405,6 +4405,9 @@ where
44054405
amount_msat,
44064406
});
44074407

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

0 commit comments

Comments
 (0)