Skip to content

Commit

Permalink
Merge pull request #2726 from shaavan/issue2712
Browse files Browse the repository at this point in the history
Log the error, when trying to forward the intercepted HTLC, but the channel is not found
  • Loading branch information
TheBlueMatt authored Nov 14, 2023
2 parents 04b16e7 + dce514e commit 185fbc1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4186,10 +4186,14 @@ where
err: format!("Channel with id {} for the passed counterparty node_id {} is still opening.",
next_hop_channel_id, next_node_id)
}),
None => return Err(APIError::ChannelUnavailable {
err: format!("Channel with id {} not found for the passed counterparty node_id {}",
next_hop_channel_id, next_node_id)
})
None => {
let error = format!("Channel with id {} not found for the passed counterparty node_id {}",
next_hop_channel_id, next_node_id);
log_error!(self.logger, "{} when attempting to forward intercepted HTLC", error);
return Err(APIError::ChannelUnavailable {
err: error
})
}
}
};

Expand Down

0 comments on commit 185fbc1

Please sign in to comment.