@@ -1946,7 +1946,7 @@ impl<Signer: Sign> Channel<Signer> {
1946
1946
/// before we fail backwards.
1947
1947
///
1948
1948
/// If we do fail twice, we debug_assert!(false) and return Ok(()). Thus, will always return
1949
- /// Ok(()) if debug assertions are turned on or preconditions are met.
1949
+ /// Ok(()) if preconditions are met.
1950
1950
pub fn queue_fail_htlc < L : Deref > ( & mut self , htlc_id_arg : u64 , err_packet : msgs:: OnionErrorPacket , logger : & L )
1951
1951
-> Result < ( ) , ChannelError > where L :: Target : Logger {
1952
1952
self . fail_htlc ( htlc_id_arg, err_packet, true , logger)
@@ -1957,8 +1957,9 @@ impl<Signer: Sign> Channel<Signer> {
1957
1957
/// an HTLC more than once or fulfill once and then attempt to fail after reconnect. We cannot,
1958
1958
/// however, fail more than once as we wait for an upstream failure to be irrevocably committed
1959
1959
/// before we fail backwards.
1960
+ ///
1960
1961
/// If we do fail twice, we debug_assert!(false) and return Ok(None). Thus, will always return
1961
- /// Ok(_) if debug assertions are turned on or preconditions are met.
1962
+ /// Ok(_) if preconditions are met.
1962
1963
fn fail_htlc < L : Deref > ( & mut self , htlc_id_arg : u64 , err_packet : msgs:: OnionErrorPacket , mut force_holding_cell : bool , logger : & L )
1963
1964
-> Result < Option < msgs:: UpdateFailHTLC > , ChannelError > where L :: Target : Logger {
1964
1965
if ( self . channel_state & ( ChannelState :: ChannelReady as u32 ) ) != ( ChannelState :: ChannelReady as u32 ) {
0 commit comments