From 1a378358b38e5efff9f40c094dcf0e94f415cc31 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Wed, 8 Nov 2023 16:56:28 -0800 Subject: [PATCH] fix doc link --- lightning/src/ln/channelmanager.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index 9afb2c70dd8..7ad091d9692 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -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( msg: &msgs::UpdateAddHTLC, node_signer: &NS, logger: &L, secp_ctx: &Secp256k1, cur_height: u32, accept_mpp_keysend: bool, @@ -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 { .. }, .. } =>