@@ -74,7 +74,7 @@ fn check_blinded_forward(
7474 Ok ( ( amt_to_forward, outgoing_cltv_value) )
7575}
7676
77- fn check_trampoline_onion_constraints (
77+ fn check_trampoline_payment_constraints (
7878 outer_hop_data : & msgs:: InboundTrampolineEntrypointPayload , trampoline_cltv_value : u32 ,
7979 trampoline_amount : u64 ,
8080) -> Result < ( ) , InboundHTLCErr > {
@@ -315,7 +315,7 @@ pub(super) fn create_recv_pending_htlc_info(
315315 cltv_expiry_height, payment_metadata, ..
316316 } , ..
317317 } => {
318- check_trampoline_onion_constraints ( outer_hop_data, cltv_expiry_height, sender_intended_htlc_amt_msat) ?;
318+ check_trampoline_payment_constraints ( outer_hop_data, cltv_expiry_height, sender_intended_htlc_amt_msat) ?;
319319 ( payment_data, keysend_preimage, custom_tlvs, sender_intended_htlc_amt_msat,
320320 cltv_expiry_height, payment_metadata, None , false , keysend_preimage. is_none ( ) , None , Some ( trampoline_shared_secret. secret_bytes ( ) ) )
321321 } ,
@@ -339,7 +339,7 @@ pub(super) fn create_recv_pending_htlc_info(
339339 }
340340 } ) ?;
341341 let payment_data = msgs:: FinalOnionHopData { payment_secret, total_msat } ;
342- check_trampoline_onion_constraints ( outer_hop_data, cltv_expiry_height, sender_intended_htlc_amt_msat) . map_err ( |e| {
342+ check_trampoline_payment_constraints ( outer_hop_data, cltv_expiry_height, sender_intended_htlc_amt_msat) . map_err ( |e| {
343343 InboundHTLCErr {
344344 reason : LocalHTLCFailureReason :: InvalidOnionBlinding ,
345345 err_data : vec ! [ 0 ; 32 ] ,
0 commit comments