@@ -344,7 +344,7 @@ fn test_onion_failure() {
344
344
// break the first (non-final) hop payload by swapping the realm (0) byte for a byte
345
345
// describing a length-1 TLV payload, which is obviously bogus.
346
346
new_payloads[ 0 ] . data [ 0 ] = 1 ;
347
- msg. onion_routing_packet = onion_utils:: construct_onion_packet_bogus_hopdata ( new_payloads, onion_keys, [ 0 ; 32 ] , & payment_hash) ;
347
+ msg. onion_routing_packet = onion_utils:: construct_onion_packet_with_writable_hopdata ( new_payloads, onion_keys, [ 0 ; 32 ] , & payment_hash) ;
348
348
} , ||{ } , true , Some ( PERM |22 ) , Some ( NetworkUpdate :: ChannelFailure { short_channel_id, is_permanent : true } ) , Some ( short_channel_id) ) ;
349
349
350
350
// final node failure
@@ -361,7 +361,7 @@ fn test_onion_failure() {
361
361
// break the last-hop payload by swapping the realm (0) byte for a byte describing a
362
362
// length-1 TLV payload, which is obviously bogus.
363
363
new_payloads[ 1 ] . data [ 0 ] = 1 ;
364
- msg. onion_routing_packet = onion_utils:: construct_onion_packet_bogus_hopdata ( new_payloads, onion_keys, [ 0 ; 32 ] , & payment_hash) ;
364
+ msg. onion_routing_packet = onion_utils:: construct_onion_packet_with_writable_hopdata ( new_payloads, onion_keys, [ 0 ; 32 ] , & payment_hash) ;
365
365
} , ||{ } , false , Some ( PERM |22 ) , Some ( NetworkUpdate :: ChannelFailure { short_channel_id, is_permanent : true } ) , Some ( short_channel_id) ) ;
366
366
367
367
// the following three with run_onion_failure_test_with_fail_intercept() test only the origin node
0 commit comments