Skip to content

Commit 719bf79

Browse files
committed
f fail docs
1 parent 23fc495 commit 719bf79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channel.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1961,8 +1961,9 @@ impl<Signer: Sign> Channel<Signer> {
19611961
/// however, fail more than once as we wait for an upstream failure to be irrevocably committed
19621962
/// before we fail backwards.
19631963
///
1964-
/// If we do fail twice, we debug_assert!(false) and return Ok(None). Thus, will always return
1965-
/// Ok(_) if preconditions are met.
1964+
/// If we do fail twice, we `debug_assert!(false)` and return `Ok(None)`. Thus, this will always
1965+
/// return `Ok(_)` if preconditions are met. In any case, `Err`s will only be
1966+
/// [`ChannelError::Ignore`].
19661967
fn fail_htlc<L: Deref>(&mut self, htlc_id_arg: u64, err_packet: msgs::OnionErrorPacket, mut force_holding_cell: bool, logger: &L)
19671968
-> Result<Option<msgs::UpdateFailHTLC>, ChannelError> where L::Target: Logger {
19681969
if (self.channel_state & (ChannelState::ChannelReady as u32)) != (ChannelState::ChannelReady as u32) {

0 commit comments

Comments
 (0)