@@ -263,7 +263,7 @@ fn do_test_async_commitment_signature_for_commitment_signed_revoke_and_ack(enabl
263263 dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, SignerOp :: GetPerCommitmentPoint ) ;
264264 dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, SignerOp :: ReleaseCommitmentSecret ) ;
265265 dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, SignerOp :: SignCounterpartyCommitment ) ;
266- dst. node . handle_commitment_signed ( src. node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
266+ dst. node . handle_commitment_signed_batch ( src. node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
267267 check_added_monitors ( dst, 1 ) ;
268268
269269 let mut enabled_signer_ops = new_hash_set ( ) ;
@@ -457,7 +457,7 @@ fn do_test_async_raa_peer_disconnect(test_case: UnblockSignerAcrossDisconnectCas
457457 // Mark dst's signer as unavailable and handle src's commitment_signed: while dst won't yet have a
458458 // `commitment_signed` of its own to offer, it should publish a `revoke_and_ack`.
459459 dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, block_raa_signer_op) ;
460- dst. node . handle_commitment_signed ( src. node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
460+ dst. node . handle_commitment_signed_batch ( src. node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
461461 check_added_monitors ( dst, 1 ) ;
462462
463463 let events = dst. node . get_and_clear_pending_msg_events ( ) ;
@@ -581,7 +581,7 @@ fn do_test_async_commitment_signature_peer_disconnect(test_case: UnblockSignerAc
581581 // Mark dst's signer as unavailable and handle src's commitment_signed: while dst won't yet have a
582582 // `commitment_signed` of its own to offer, it should publish a `revoke_and_ack`.
583583 dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, SignerOp :: SignCounterpartyCommitment ) ;
584- dst. node . handle_commitment_signed ( src. node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
584+ dst. node . handle_commitment_signed_batch ( src. node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
585585 check_added_monitors ( dst, 1 ) ;
586586
587587 if test_case != UnblockSignerAcrossDisconnectCase :: BeforeMonitorRestored {
@@ -697,7 +697,7 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
697697 if monitor_update_failure {
698698 chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
699699 }
700- nodes[ 0 ] . node . handle_commitment_signed ( nodes[ 1 ] . node . get_our_node_id ( ) , commitment_signed) ;
700+ nodes[ 0 ] . node . handle_commitment_signed_batch ( nodes[ 1 ] . node . get_our_node_id ( ) , commitment_signed) ;
701701 if monitor_update_failure {
702702 assert ! ( nodes[ 0 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
703703 } else {
@@ -767,7 +767,7 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
767767
768768 // Now that everything is restored, get the CS + RAA and handle them.
769769 nodes[ 1 ] . node . handle_update_add_htlc ( nodes[ 0 ] . node . get_our_node_id ( ) , & as_resp. 2 . as_ref ( ) . unwrap ( ) . update_add_htlcs [ 0 ] ) ;
770- nodes[ 1 ] . node . handle_commitment_signed ( nodes[ 0 ] . node . get_our_node_id ( ) , & as_resp. 2 . as_ref ( ) . unwrap ( ) . commitment_signed ) ;
770+ nodes[ 1 ] . node . handle_commitment_signed_batch ( nodes[ 0 ] . node . get_our_node_id ( ) , & as_resp. 2 . as_ref ( ) . unwrap ( ) . commitment_signed ) ;
771771 nodes[ 1 ] . node . handle_revoke_and_ack ( nodes[ 0 ] . node . get_our_node_id ( ) , as_resp. 1 . as_ref ( ) . unwrap ( ) ) ;
772772 let ( bs_revoke_and_ack, bs_second_commitment_signed) = get_revoke_commit_msgs ( & nodes[ 1 ] , & nodes[ 0 ] . node . get_our_node_id ( ) ) ;
773773 check_added_monitors ! ( nodes[ 1 ] , 2 ) ;
@@ -778,12 +778,12 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
778778 let as_commitment_signed = get_htlc_update_msgs ! ( nodes[ 0 ] , nodes[ 1 ] . node. get_our_node_id( ) ) ;
779779 check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
780780
781- nodes[ 0 ] . node . handle_commitment_signed ( nodes[ 1 ] . node . get_our_node_id ( ) , & bs_second_commitment_signed) ;
781+ nodes[ 0 ] . node . handle_commitment_signed_batch ( nodes[ 1 ] . node . get_our_node_id ( ) , & bs_second_commitment_signed) ;
782782 let as_revoke_and_ack = get_event_msg ! ( nodes[ 0 ] , MessageSendEvent :: SendRevokeAndACK , nodes[ 1 ] . node. get_our_node_id( ) ) ;
783783 // No commitment_signed so get_event_msg's assert(len == 1) passes
784784 check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
785785
786- nodes[ 1 ] . node . handle_commitment_signed ( nodes[ 0 ] . node . get_our_node_id ( ) , & as_commitment_signed. commitment_signed ) ;
786+ nodes[ 1 ] . node . handle_commitment_signed_batch ( nodes[ 0 ] . node . get_our_node_id ( ) , & as_commitment_signed. commitment_signed ) ;
787787 let bs_second_revoke_and_ack = get_event_msg ! ( nodes[ 1 ] , MessageSendEvent :: SendRevokeAndACK , nodes[ 0 ] . node. get_our_node_id( ) ) ;
788788 // No commitment_signed so get_event_msg's assert(len == 1) passes
789789 check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
0 commit comments