@@ -1172,7 +1172,7 @@ fn test_onion_failure() {
11721172 & payment_secret,
11731173 |_| { } ,
11741174 || {
1175- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
1175+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
11761176 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
11771177 for f in pending_forwards. iter_mut ( ) {
11781178 match f {
@@ -1201,7 +1201,7 @@ fn test_onion_failure() {
12011201 & payment_secret,
12021202 |_| { } ,
12031203 || {
1204- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
1204+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
12051205 // violate amt_to_forward > msg.amount_msat
12061206 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
12071207 for f in pending_forwards. iter_mut ( ) {
@@ -2440,7 +2440,7 @@ fn test_phantom_onion_hmac_failure() {
24402440 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & update_add) ;
24412441 commitment_signed_dance ! ( nodes[ 1 ] , nodes[ 0 ] , & update_0. commitment_signed, false , true ) ;
24422442 expect_htlc_failure_conditions ( nodes[ 1 ] . node . get_and_clear_pending_events ( ) , & [ ] ) ;
2443- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
2443+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
24442444
24452445 // Modify the payload so the phantom hop's HMAC is bogus.
24462446 let sha256_of_onion = {
@@ -2513,7 +2513,7 @@ fn test_phantom_invalid_onion_payload() {
25132513 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & update_add) ;
25142514 commitment_signed_dance ! ( nodes[ 1 ] , nodes[ 0 ] , & update_0. commitment_signed, false , true ) ;
25152515 expect_htlc_failure_conditions ( nodes[ 1 ] . node . get_and_clear_pending_events ( ) , & [ ] ) ;
2516- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
2516+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
25172517
25182518 // Modify the onion packet to have an invalid payment amount.
25192519 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
@@ -2612,7 +2612,7 @@ fn test_phantom_final_incorrect_cltv_expiry() {
26122612 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & update_add) ;
26132613 commitment_signed_dance ! ( nodes[ 1 ] , nodes[ 0 ] , & update_0. commitment_signed, false , true ) ;
26142614 expect_htlc_failure_conditions ( nodes[ 1 ] . node . get_and_clear_pending_events ( ) , & [ ] ) ;
2615- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
2615+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
26162616
26172617 // Modify the payload so the phantom hop's HMAC is bogus.
26182618 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
0 commit comments