@@ -782,6 +782,7 @@ fn test_monitor_update_raa_while_paused() {
782782 check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
783783 let bs_raa = get_event_msg ! ( nodes[ 1 ] , MessageSendEvent :: SendRevokeAndACK , nodes[ 0 ] . node. get_our_node_id( ) ) ;
784784
785+ chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
785786 chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
786787 nodes[ 0 ] . node . handle_update_add_htlc ( & nodes[ 1 ] . node . get_our_node_id ( ) , & send_event_2. msgs [ 0 ] ) ;
787788 nodes[ 0 ] . node . handle_commitment_signed ( & nodes[ 1 ] . node . get_our_node_id ( ) , & send_event_2. commitment_msg ) ;
@@ -793,7 +794,6 @@ fn test_monitor_update_raa_while_paused() {
793794 assert ! ( nodes[ 0 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
794795 check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
795796
796- chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: Completed ) ;
797797 let ( outpoint, latest_update, _) = nodes[ 0 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & channel_id) . unwrap ( ) . clone ( ) ;
798798 nodes[ 0 ] . chain_monitor . chain_monitor . force_channel_monitor_updated ( outpoint, latest_update) ;
799799 check_added_monitors ! ( nodes[ 0 ] , 0 ) ;
@@ -1223,6 +1223,7 @@ fn raa_no_response_awaiting_raa_state() {
12231223 // nodes[1]) followed by an RAA. Fail the monitor updating prior to the CS, deliver the RAA,
12241224 // then restore channel monitor updates.
12251225 chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
1226+ chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
12261227 nodes[ 1 ] . node . handle_update_add_htlc ( & nodes[ 0 ] . node . get_our_node_id ( ) , & payment_event. msgs [ 0 ] ) ;
12271228 nodes[ 1 ] . node . handle_commitment_signed ( & nodes[ 0 ] . node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
12281229 assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
@@ -1233,7 +1234,6 @@ fn raa_no_response_awaiting_raa_state() {
12331234 assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
12341235 check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
12351236
1236- chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: Completed ) ;
12371237 let ( outpoint, latest_update, _) = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & channel_id) . unwrap ( ) . clone ( ) ;
12381238 nodes[ 1 ] . chain_monitor . chain_monitor . force_channel_monitor_updated ( outpoint, latest_update) ;
12391239 // nodes[1] should be AwaitingRAA here!
@@ -1959,7 +1959,7 @@ fn test_path_paused_mpp() {
19591959 // Set it so that the first monitor update (for the path 0 -> 1 -> 3) succeeds, but the second
19601960 // (for the path 0 -> 2 -> 3) fails.
19611961 chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: Completed ) ;
1962- chanmon_cfgs[ 0 ] . persister . set_next_update_ret ( Some ( ChannelMonitorUpdateStatus :: InProgress ) ) ;
1962+ chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
19631963
19641964 // Now check that we get the right return value, indicating that the first path succeeded but
19651965 // the second got a MonitorUpdateInProgress err. This implies
@@ -2268,6 +2268,7 @@ fn do_channel_holding_cell_serialize(disconnect: bool, reload_a: bool) {
22682268 nodes[ 0 ] . node . send_payment ( & route, payment_hash_2, & Some ( payment_secret_2) , PaymentId ( payment_hash_2. 0 ) ) . unwrap ( ) ;
22692269 check_added_monitors ! ( nodes[ 0 ] , 0 ) ;
22702270
2271+ chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
22712272 chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
22722273 nodes[ 0 ] . node . claim_funds ( payment_preimage_0) ;
22732274 check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
0 commit comments