Skip to content

Commit d224a75

Browse files
committed
f write real docs
1 parent 1b64b24 commit d224a75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3230,7 +3230,11 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
32303230
}
32313231
}
32323232

3233-
/// Process pending events from the `chain::Watch`.
3233+
/// Check the holding cell in each channel and free any pending HTLCs in them if possible.
3234+
/// This should only apply to HTLCs which were added to the holding cell because we were
3235+
/// waiting on a monitor update to finish. In that case, we don't want to free the holding cell
3236+
/// directly in `channel_monitor_updated` as it may introduce deadlocks calling back into user
3237+
/// code to inform them of a channel monitor update.
32343238
fn check_free_holding_cells(&self) {
32353239
let mut forwarding_failed_htlcs = Vec::new();
32363240
let mut handle_errors = Vec::new();

0 commit comments

Comments
 (0)