@@ -2379,7 +2379,7 @@ fn test_trampoline_unblinded_receive() {
23792379}
23802380
23812381#[ test]
2382- fn test_trampoline_forward_rejection ( ) {
2382+ fn test_trampoline_constraint_enforcement ( ) {
23832383 const TOTAL_NODE_COUNT : usize = 3 ;
23842384
23852385 let chanmon_cfgs = create_chanmon_cfgs ( TOTAL_NODE_COUNT ) ;
@@ -2472,7 +2472,7 @@ fn test_trampoline_forward_rejection() {
24722472 let args = PassAlongPathArgs :: new ( & nodes[ 0 ] , route, amt_msat, payment_hash, first_message_event)
24732473 . with_payment_preimage ( payment_preimage)
24742474 . without_claimable_event ( )
2475- . expect_failure ( HTLCDestination :: FailedPayment { payment_hash } ) ;
2475+ . expect_failure ( HTLCDestination :: InvalidOnion ) ;
24762476 do_pass_along_path ( args) ;
24772477
24782478 {
@@ -2490,10 +2490,9 @@ fn test_trampoline_forward_rejection() {
24902490 do_commitment_signed_dance ( & nodes[ 0 ] , & nodes[ 1 ] , & unblinded_node_updates. commitment_signed , false , false ) ;
24912491 }
24922492 {
2493- // Expect a PERM|10 (unknown_next_peer) error while we are unable to route forwarding
2494- // Trampoline payments.
2493+ // Expect a NODE|26 (unknown_next_peer) error due to an outer/inner onion enforcement violation
24952494 let payment_failed_conditions = PaymentFailedConditions :: new ( )
2496- . expected_htlc_error_data ( 0x4000 | 10 , & [ 0 ; 0 ] ) ;
2495+ . expected_htlc_error_data ( 0x2000 | 26 , & [ 0 ; 0 ] ) ;
24972496 expect_payment_failed_conditions ( & nodes[ 0 ] , payment_hash, false , payment_failed_conditions) ;
24982497 }
24992498}
0 commit comments