@@ -7859,7 +7859,7 @@ fn create_recv_pending_htlc_info(
7859
7859
/// This does all the relevant context-free checks that LDK requires for payment relay or
7860
7860
/// acceptance. If the payment is to be received, and the amount matches the expected amount for
7861
7861
/// 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 `].
7863
7863
pub fn peel_payment_onion<NS: Deref, L: Deref, T: secp256k1::Verification>(
7864
7864
msg: &msgs::UpdateAddHTLC, node_signer: &NS, logger: &L, secp_ctx: &Secp256k1<T>,
7865
7865
cur_height: u32, accept_mpp_keysend: bool,
@@ -8002,6 +8002,8 @@ where
8002
8002
outgoing_amt_msat: amt_to_forward, outgoing_cltv_value
8003
8003
}
8004
8004
},
8005
+ // We'll do receive checks in [`Self::construct_pending_htlc_info`] so we have access to the
8006
+ // inbound channel's state.
8005
8007
onion_utils::Hop::Receive { .. } => return Ok((next_hop, shared_secret, None)),
8006
8008
onion_utils::Hop::Forward { next_hop_data: msgs::InboundOnionPayload::Receive { .. }, .. } |
8007
8009
onion_utils::Hop::Forward { next_hop_data: msgs::InboundOnionPayload::BlindedReceive { .. }, .. } =>
0 commit comments