@@ -2899,7 +2899,7 @@ impl<SP: Deref> Channel<SP> where
2899
2899
/// return `Ok(_)` if preconditions are met. In any case, `Err`s will only be
2900
2900
/// [`ChannelError::Ignore`].
2901
2901
fn fail_htlc<L: Deref, E: FailHTLCContents + Clone>(
2902
- &mut self, htlc_id_arg: u64, err_packet : E, mut force_holding_cell: bool,
2902
+ &mut self, htlc_id_arg: u64, err_contents : E, mut force_holding_cell: bool,
2903
2903
logger: &L
2904
2904
) -> Result<Option<E::Message>, ChannelError> where L::Target: Logger {
2905
2905
if !matches!(self.context.channel_state, ChannelState::ChannelReady(_)) {
@@ -2966,18 +2966,18 @@ impl<SP: Deref> Channel<SP> where
2966
2966
}
2967
2967
}
2968
2968
log_trace!(logger, "Placing failure for HTLC ID {} in holding cell in channel {}.", htlc_id_arg, &self.context.channel_id());
2969
- self.context.holding_cell_htlc_updates.push(err_packet .to_htlc_update_awaiting_ack(htlc_id_arg));
2969
+ self.context.holding_cell_htlc_updates.push(err_contents .to_htlc_update_awaiting_ack(htlc_id_arg));
2970
2970
return Ok(None);
2971
2971
}
2972
2972
2973
2973
log_trace!(logger, "Failing HTLC ID {} back with {} message in channel {}.", htlc_id_arg,
2974
2974
E::Message::name(), &self.context.channel_id());
2975
2975
{
2976
2976
let htlc = &mut self.context.pending_inbound_htlcs[pending_idx];
2977
- htlc.state = err_packet .clone().to_inbound_htlc_state();
2977
+ htlc.state = err_contents .clone().to_inbound_htlc_state();
2978
2978
}
2979
2979
2980
- Ok(Some(err_packet .to_message(htlc_id_arg, self.context.channel_id())))
2980
+ Ok(Some(err_contents .to_message(htlc_id_arg, self.context.channel_id())))
2981
2981
}
2982
2982
2983
2983
// Message handlers:
0 commit comments