Skip to content

Commit

Permalink
fix doc link
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Nov 9, 2023
1 parent 8aacdd9 commit 1a37835
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7859,7 +7859,7 @@ fn create_recv_pending_htlc_info(
/// This does all the relevant context-free checks that LDK requires for payment relay or
/// acceptance. If the payment is to be received, and the amount matches the expected amount for
/// a given invoice, this indicates the [`msgs::UpdateAddHTLC`], once fully committed in the
/// channel, will generate an [`Event::PaymentReceived`].
/// channel, will generate an [`Event::PaymentClaimable`].
pub fn peel_payment_onion<NS: Deref, L: Deref, T: secp256k1::Verification>(
msg: &msgs::UpdateAddHTLC, node_signer: &NS, logger: &L, secp_ctx: &Secp256k1<T>,
cur_height: u32, accept_mpp_keysend: bool,
Expand Down Expand Up @@ -8002,6 +8002,8 @@ where
outgoing_amt_msat: amt_to_forward, outgoing_cltv_value
}
},
// We'll do receive checks in [`Self::construct_pending_htlc_info`] so we have access to the
// inbound channel's state.
onion_utils::Hop::Receive { .. } => return Ok((next_hop, shared_secret, None)),
onion_utils::Hop::Forward { next_hop_data: msgs::InboundOnionPayload::Receive { .. }, .. } |
onion_utils::Hop::Forward { next_hop_data: msgs::InboundOnionPayload::BlindedReceive { .. }, .. } =>
Expand Down

0 comments on commit 1a37835

Please sign in to comment.