@@ -975,9 +975,9 @@ fn do_test_monitor_update_fail_raa(test_ignore_second_cs: bool) {
975975
976976 // Fail the payment backwards, failing the monitor update on nodes[1]'s receipt of the RAA
977977 nodes[ 2 ] . node . fail_htlc_backwards ( & payment_hash_1) ;
978- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
979- nodes[ 2 ] ,
980- [ HTLCHandlingFailureType :: Receive { payment_hash: payment_hash_1 } ]
978+ expect_pending_htlc_processing_and_htlc_handling_failed (
979+ & nodes[ 2 ] ,
980+ & [ HTLCHandlingFailureType :: Receive { payment_hash : payment_hash_1 } ] ,
981981 ) ;
982982 check_added_monitors ! ( nodes[ 2 ] , 1 ) ;
983983
@@ -1067,9 +1067,9 @@ fn do_test_monitor_update_fail_raa(test_ignore_second_cs: bool) {
10671067 let ( latest_update, _) = get_latest_mon_update_id ( & nodes[ 1 ] , chan_2. 2 ) ;
10681068 nodes[ 1 ] . chain_monitor . chain_monitor . force_channel_monitor_updated ( chan_2. 2 , latest_update) ;
10691069 check_added_monitors ! ( nodes[ 1 ] , 0 ) ;
1070- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
1071- nodes[ 1 ] ,
1072- [ HTLCHandlingFailureType :: Forward { node_id: Some ( node_c_id) , channel_id: chan_2. 2 } ]
1070+ expect_pending_htlc_processing_and_htlc_handling_failed (
1071+ & nodes[ 1 ] ,
1072+ & [ HTLCHandlingFailureType :: Forward { node_id : Some ( node_c_id) , channel_id : chan_2. 2 } ] ,
10731073 ) ;
10741074 check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
10751075
@@ -1973,9 +1973,9 @@ fn test_monitor_update_on_pending_forwards() {
19731973
19741974 let ( _, payment_hash_1, ..) = route_payment ( & nodes[ 0 ] , & [ & nodes[ 1 ] , & nodes[ 2 ] ] , 1000000 ) ;
19751975 nodes[ 2 ] . node . fail_htlc_backwards ( & payment_hash_1) ;
1976- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
1977- nodes[ 2 ] ,
1978- [ HTLCHandlingFailureType :: Receive { payment_hash: payment_hash_1 } ]
1976+ expect_pending_htlc_processing_and_htlc_handling_failed (
1977+ & nodes[ 2 ] ,
1978+ & [ HTLCHandlingFailureType :: Receive { payment_hash : payment_hash_1 } ] ,
19791979 ) ;
19801980 check_added_monitors ! ( nodes[ 2 ] , 1 ) ;
19811981
@@ -1998,9 +1998,9 @@ fn test_monitor_update_on_pending_forwards() {
19981998 commitment_signed_dance ! ( nodes[ 1 ] , nodes[ 2 ] , payment_event. commitment_msg, false ) ;
19991999
20002000 chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
2001- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
2002- nodes[ 1 ] ,
2003- [ HTLCHandlingFailureType :: Forward { node_id: Some ( node_c_id) , channel_id: chan_2. 2 } ]
2001+ expect_pending_htlc_processing_and_htlc_handling_failed (
2002+ & nodes[ 1 ] ,
2003+ & [ HTLCHandlingFailureType :: Forward { node_id : Some ( node_c_id) , channel_id : chan_2. 2 } ] ,
20042004 ) ;
20052005 check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
20062006
@@ -2501,9 +2501,9 @@ fn test_fail_htlc_on_broadcast_after_claim() {
25012501 check_closed_broadcast ! ( nodes[ 1 ] , true ) ;
25022502 connect_blocks ( & nodes[ 1 ] , ANTI_REORG_DELAY - 1 ) ;
25032503 check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
2504- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
2505- nodes[ 1 ] ,
2506- [ HTLCHandlingFailureType :: Forward { node_id: Some ( node_c_id) , channel_id: chan_id_2 } ]
2504+ expect_pending_htlc_processing_and_htlc_handling_failed (
2505+ & nodes[ 1 ] ,
2506+ & [ HTLCHandlingFailureType :: Forward { node_id : Some ( node_c_id) , channel_id : chan_id_2 } ] ,
25072507 ) ;
25082508
25092509 nodes[ 0 ] . node . handle_update_fulfill_htlc ( node_b_id, & bs_updates. update_fulfill_htlcs [ 0 ] ) ;
@@ -2887,9 +2887,9 @@ fn do_test_reconnect_dup_htlc_claims(htlc_status: HTLCStatusAtDupClaim, second_f
28872887 msgs:: UpdateFulfillHTLC { channel_id : chan_id_2, htlc_id : 0 , payment_preimage } ;
28882888 if second_fails {
28892889 nodes[ 2 ] . node . fail_htlc_backwards ( & payment_hash) ;
2890- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
2891- nodes[ 2 ] ,
2892- [ HTLCHandlingFailureType :: Receive { payment_hash } ]
2890+ expect_pending_htlc_processing_and_htlc_handling_failed (
2891+ & nodes[ 2 ] ,
2892+ & [ HTLCHandlingFailureType :: Receive { payment_hash } ] ,
28932893 ) ;
28942894 check_added_monitors ! ( nodes[ 2 ] , 1 ) ;
28952895 get_htlc_update_msgs ! ( nodes[ 2 ] , node_b_id) ;
@@ -2936,9 +2936,9 @@ fn do_test_reconnect_dup_htlc_claims(htlc_status: HTLCStatusAtDupClaim, second_f
29362936 let mut reconnect_args = ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ;
29372937 reconnect_args. pending_htlc_fails . 0 = 1 ;
29382938 reconnect_nodes ( reconnect_args) ;
2939- expect_pending_htlcs_forwardable_and_htlc_handling_failed ! (
2940- nodes[ 1 ] ,
2941- [ HTLCHandlingFailureType :: Forward { node_id: Some ( node_c_id) , channel_id: chan_id_2 } ]
2939+ expect_pending_htlc_processing_and_htlc_handling_failed (
2940+ & nodes[ 1 ] ,
2941+ & [ HTLCHandlingFailureType :: Forward { node_id : Some ( node_c_id) , channel_id : chan_id_2 } ] ,
29422942 ) ;
29432943 } else {
29442944 let mut reconnect_args = ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ;
0 commit comments