Skip to content

Commit 988a8d1

Browse files
committed
f what holding cell does
1 parent dfc65d1 commit 988a8d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3165,8 +3165,8 @@ impl<Signer: Sign> Channel<Signer> {
31653165
} else { Ok((None, Vec::new())) }
31663166
}
31673167

3168-
/// Used to fulfill holding_cell_htlcs when we get a remote ack (or implicitly get it by them
3169-
/// fulfilling or failing the last pending HTLC)
3168+
/// Frees any pending commitment updates in the holding cell, generating the relevant messages
3169+
/// for our counterparty.
31703170
fn free_holding_cell_htlcs<L: Deref>(&mut self, logger: &L) -> Result<(Option<(msgs::CommitmentUpdate, ChannelMonitorUpdate)>, Vec<(HTLCSource, PaymentHash)>), ChannelError> where L::Target: Logger {
31713171
assert_eq!(self.channel_state & ChannelState::MonitorUpdateInProgress as u32, 0);
31723172
if self.holding_cell_htlc_updates.len() != 0 || self.holding_cell_update_fee.is_some() {

0 commit comments

Comments
 (0)