@@ -263,7 +263,7 @@ fn do_test_async_commitment_signature_for_commitment_signed_revoke_and_ack(enabl
263
263
dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, SignerOp :: GetPerCommitmentPoint ) ;
264
264
dst. disable_channel_signer_op ( & src. node . get_our_node_id ( ) , & chan_id, SignerOp :: ReleaseCommitmentSecret ) ;
265
265
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 ) ;
267
267
check_added_monitors ( dst, 1 ) ;
268
268
269
269
let mut enabled_signer_ops = new_hash_set ( ) ;
@@ -457,7 +457,7 @@ fn do_test_async_raa_peer_disconnect(test_case: UnblockSignerAcrossDisconnectCas
457
457
// Mark dst's signer as unavailable and handle src's commitment_signed: while dst won't yet have a
458
458
// `commitment_signed` of its own to offer, it should publish a `revoke_and_ack`.
459
459
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 ) ;
461
461
check_added_monitors ( dst, 1 ) ;
462
462
463
463
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
581
581
// Mark dst's signer as unavailable and handle src's commitment_signed: while dst won't yet have a
582
582
// `commitment_signed` of its own to offer, it should publish a `revoke_and_ack`.
583
583
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 ) ;
585
585
check_added_monitors ( dst, 1 ) ;
586
586
587
587
if test_case != UnblockSignerAcrossDisconnectCase :: BeforeMonitorRestored {
@@ -697,7 +697,7 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
697
697
if monitor_update_failure {
698
698
chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
699
699
}
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) ;
701
701
if monitor_update_failure {
702
702
assert ! ( nodes[ 0 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
703
703
} else {
@@ -767,7 +767,7 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
767
767
768
768
// Now that everything is restored, get the CS + RAA and handle them.
769
769
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 ) ;
771
771
nodes[ 1 ] . node . handle_revoke_and_ack ( nodes[ 0 ] . node . get_our_node_id ( ) , as_resp. 1 . as_ref ( ) . unwrap ( ) ) ;
772
772
let ( bs_revoke_and_ack, bs_second_commitment_signed) = get_revoke_commit_msgs ( & nodes[ 1 ] , & nodes[ 0 ] . node . get_our_node_id ( ) ) ;
773
773
check_added_monitors ! ( nodes[ 1 ] , 2 ) ;
@@ -778,12 +778,12 @@ fn do_test_async_commitment_signature_ordering(monitor_update_failure: bool) {
778
778
let as_commitment_signed = get_htlc_update_msgs ! ( nodes[ 0 ] , nodes[ 1 ] . node. get_our_node_id( ) ) ;
779
779
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
780
780
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) ;
782
782
let as_revoke_and_ack = get_event_msg ! ( nodes[ 0 ] , MessageSendEvent :: SendRevokeAndACK , nodes[ 1 ] . node. get_our_node_id( ) ) ;
783
783
// No commitment_signed so get_event_msg's assert(len == 1) passes
784
784
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
785
785
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 ) ;
787
787
let bs_second_revoke_and_ack = get_event_msg ! ( nodes[ 1 ] , MessageSendEvent :: SendRevokeAndACK , nodes[ 0 ] . node. get_our_node_id( ) ) ;
788
788
// No commitment_signed so get_event_msg's assert(len == 1) passes
789
789
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
0 commit comments