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