Skip to content

Commit 1a37835

Browse files
committed
fix doc link
1 parent 8aacdd9 commit 1a37835

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7859,7 +7859,7 @@ fn create_recv_pending_htlc_info(
78597859
/// This does all the relevant context-free checks that LDK requires for payment relay or
78607860
/// acceptance. If the payment is to be received, and the amount matches the expected amount for
78617861
/// a given invoice, this indicates the [`msgs::UpdateAddHTLC`], once fully committed in the
7862-
/// channel, will generate an [`Event::PaymentReceived`].
7862+
/// channel, will generate an [`Event::PaymentClaimable`].
78637863
pub fn peel_payment_onion<NS: Deref, L: Deref, T: secp256k1::Verification>(
78647864
msg: &msgs::UpdateAddHTLC, node_signer: &NS, logger: &L, secp_ctx: &Secp256k1<T>,
78657865
cur_height: u32, accept_mpp_keysend: bool,
@@ -8002,6 +8002,8 @@ where
80028002
outgoing_amt_msat: amt_to_forward, outgoing_cltv_value
80038003
}
80048004
},
8005+
// We'll do receive checks in [`Self::construct_pending_htlc_info`] so we have access to the
8006+
// inbound channel's state.
80058007
onion_utils::Hop::Receive { .. } => return Ok((next_hop, shared_secret, None)),
80068008
onion_utils::Hop::Forward { next_hop_data: msgs::InboundOnionPayload::Receive { .. }, .. } |
80078009
onion_utils::Hop::Forward { next_hop_data: msgs::InboundOnionPayload::BlindedReceive { .. }, .. } =>

0 commit comments

Comments
 (0)