@@ -721,7 +721,7 @@ fn do_blinded_intercept_payment(intercept_node_fails: bool) {
721721 SendEvent :: from_event ( events. remove ( 0 ) )
722722 } ;
723723 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & payment_event. msgs [ 0 ] ) ;
724- commitment_signed_dance ! ( nodes[ 1 ] , nodes[ 0 ] , & payment_event. commitment_msg, false , true ) ;
724+ do_commitment_signed_dance ( & nodes[ 1 ] , & nodes[ 0 ] , & payment_event. commitment_msg , false , true ) ;
725725 expect_and_process_pending_htlcs ( & nodes[ 1 ] , false ) ;
726726
727727 let events = nodes[ 1 ] . node . get_and_clear_pending_events ( ) ;
@@ -761,7 +761,7 @@ fn do_blinded_intercept_payment(intercept_node_fails: bool) {
761761 SendEvent :: from_event ( events. remove ( 0 ) )
762762 } ;
763763 nodes[ 2 ] . node . handle_update_add_htlc ( nodes[ 1 ] . node . get_our_node_id ( ) , & payment_event. msgs [ 0 ] ) ;
764- commitment_signed_dance ! ( nodes[ 2 ] , nodes[ 1 ] , & payment_event. commitment_msg, false , true ) ;
764+ do_commitment_signed_dance ( & nodes[ 2 ] , & nodes[ 1 ] , & payment_event. commitment_msg , false , true ) ;
765765 expect_and_process_pending_htlcs ( & nodes[ 2 ] , false ) ;
766766
767767 expect_payment_claimable ! ( & nodes[ 2 ] , payment_hash, payment_secret, amt_msat, None , nodes[ 2 ] . node. get_our_node_id( ) ) ;
@@ -1027,7 +1027,7 @@ fn do_multi_hop_receiver_fail(check: ReceiveCheckFail) {
10271027 check_added_monitors ! ( nodes[ 2 ] , 1 ) ;
10281028
10291029 nodes[ 2 ] . node . handle_shutdown ( nodes[ 1 ] . node . get_our_node_id ( ) , & node_1_shutdown) ;
1030- commitment_signed_dance ! ( nodes[ 2 ] , nodes[ 1 ] , ( ) , false , true , false , false ) ;
1030+ assert ! ( commitment_signed_dance_through_cp_raa ( & nodes[ 2 ] , & nodes[ 1 ] , false , false ) . is_none ( ) ) ;
10311031 expect_and_process_pending_htlcs ( & nodes[ 2 ] , false ) ;
10321032 expect_htlc_handling_failed_destinations ! ( nodes[ 2 ] . node. get_and_clear_pending_events( ) , & [ HTLCHandlingFailureType :: Receive { payment_hash } ] ) ;
10331033 check_added_monitors ( & nodes[ 2 ] , 1 ) ;
@@ -1452,7 +1452,7 @@ fn fails_receive_tlvs_authentication() {
14521452 assert ! ( update_fail. update_fail_htlcs. len( ) == 1 ) ;
14531453 let fail_msg = & update_fail. update_fail_htlcs [ 0 ] ;
14541454 nodes[ 0 ] . node . handle_update_fail_htlc ( nodes[ 1 ] . node . get_our_node_id ( ) , fail_msg) ;
1455- commitment_signed_dance ! ( nodes[ 0 ] , nodes[ 1 ] , update_fail. commitment_signed, false ) ;
1455+ do_commitment_signed_dance ( & nodes[ 0 ] , & nodes[ 1 ] , & update_fail. commitment_signed , false , false ) ;
14561456 expect_payment_failed_conditions (
14571457 & nodes[ 0 ] , payment_hash, true ,
14581458 PaymentFailedConditions :: new ( ) . expected_htlc_error_data ( LocalHTLCFailureReason :: InvalidOnionPayload , & [ ] ) ,
0 commit comments