@@ -1174,7 +1174,7 @@ fn test_onion_failure() {
11741174 & payment_secret,
11751175 |_| { } ,
11761176 || {
1177- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
1177+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
11781178 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
11791179 for f in pending_forwards. iter_mut ( ) {
11801180 match f {
@@ -1203,7 +1203,7 @@ fn test_onion_failure() {
12031203 & payment_secret,
12041204 |_| { } ,
12051205 || {
1206- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
1206+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
12071207 // violate amt_to_forward > msg.amount_msat
12081208 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
12091209 for f in pending_forwards. iter_mut ( ) {
@@ -2442,7 +2442,7 @@ fn test_phantom_onion_hmac_failure() {
24422442 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & update_add) ;
24432443 do_commitment_signed_dance ( & nodes[ 1 ] , & nodes[ 0 ] , & update_0. commitment_signed , false , true ) ;
24442444 expect_htlc_failure_conditions ( nodes[ 1 ] . node . get_and_clear_pending_events ( ) , & [ ] ) ;
2445- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
2445+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
24462446
24472447 // Modify the payload so the phantom hop's HMAC is bogus.
24482448 let sha256_of_onion = {
@@ -2515,7 +2515,7 @@ fn test_phantom_invalid_onion_payload() {
25152515 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & update_add) ;
25162516 do_commitment_signed_dance ( & nodes[ 1 ] , & nodes[ 0 ] , & update_0. commitment_signed , false , true ) ;
25172517 expect_htlc_failure_conditions ( nodes[ 1 ] . node . get_and_clear_pending_events ( ) , & [ ] ) ;
2518- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
2518+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
25192519
25202520 // Modify the onion packet to have an invalid payment amount.
25212521 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
@@ -2614,7 +2614,7 @@ fn test_phantom_final_incorrect_cltv_expiry() {
26142614 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & update_add) ;
26152615 do_commitment_signed_dance ( & nodes[ 1 ] , & nodes[ 0 ] , & update_0. commitment_signed , false , true ) ;
26162616 expect_htlc_failure_conditions ( nodes[ 1 ] . node . get_and_clear_pending_events ( ) , & [ ] ) ;
2617- nodes[ 1 ] . node . process_pending_update_add_htlcs ( ) ;
2617+ nodes[ 1 ] . node . test_process_pending_update_add_htlcs ( ) ;
26182618
26192619 // Modify the payload so the phantom hop's HMAC is bogus.
26202620 for ( _, pending_forwards) in nodes[ 1 ] . node . forward_htlcs . lock ( ) . unwrap ( ) . iter_mut ( ) {
0 commit comments