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