@@ -782,6 +782,7 @@ fn test_monitor_update_raa_while_paused() {
782
782
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
783
783
let bs_raa = get_event_msg ! ( nodes[ 1 ] , MessageSendEvent :: SendRevokeAndACK , nodes[ 0 ] . node. get_our_node_id( ) ) ;
784
784
785
+ chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
785
786
chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
786
787
nodes[ 0 ] . node . handle_update_add_htlc ( & nodes[ 1 ] . node . get_our_node_id ( ) , & send_event_2. msgs [ 0 ] ) ;
787
788
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() {
793
794
assert ! ( nodes[ 0 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
794
795
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
795
796
796
- chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: Completed ) ;
797
797
let ( outpoint, latest_update, _) = nodes[ 0 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & channel_id) . unwrap ( ) . clone ( ) ;
798
798
nodes[ 0 ] . chain_monitor . chain_monitor . force_channel_monitor_updated ( outpoint, latest_update) ;
799
799
check_added_monitors ! ( nodes[ 0 ] , 0 ) ;
@@ -1223,6 +1223,7 @@ fn raa_no_response_awaiting_raa_state() {
1223
1223
// nodes[1]) followed by an RAA. Fail the monitor updating prior to the CS, deliver the RAA,
1224
1224
// then restore channel monitor updates.
1225
1225
chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
1226
+ chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
1226
1227
nodes[ 1 ] . node . handle_update_add_htlc ( & nodes[ 0 ] . node . get_our_node_id ( ) , & payment_event. msgs [ 0 ] ) ;
1227
1228
nodes[ 1 ] . node . handle_commitment_signed ( & nodes[ 0 ] . node . get_our_node_id ( ) , & payment_event. commitment_msg ) ;
1228
1229
assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
@@ -1233,7 +1234,6 @@ fn raa_no_response_awaiting_raa_state() {
1233
1234
assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
1234
1235
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
1235
1236
1236
- chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: Completed ) ;
1237
1237
let ( outpoint, latest_update, _) = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & channel_id) . unwrap ( ) . clone ( ) ;
1238
1238
nodes[ 1 ] . chain_monitor . chain_monitor . force_channel_monitor_updated ( outpoint, latest_update) ;
1239
1239
// nodes[1] should be AwaitingRAA here!
@@ -1959,7 +1959,7 @@ fn test_path_paused_mpp() {
1959
1959
// Set it so that the first monitor update (for the path 0 -> 1 -> 3) succeeds, but the second
1960
1960
// (for the path 0 -> 2 -> 3) fails.
1961
1961
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 ) ;
1963
1963
1964
1964
// Now check that we get the right return value, indicating that the first path succeeded but
1965
1965
// the second got a MonitorUpdateInProgress err. This implies
@@ -2268,6 +2268,7 @@ fn do_channel_holding_cell_serialize(disconnect: bool, reload_a: bool) {
2268
2268
nodes[ 0 ] . node . send_payment ( & route, payment_hash_2, & Some ( payment_secret_2) , PaymentId ( payment_hash_2. 0 ) ) . unwrap ( ) ;
2269
2269
check_added_monitors ! ( nodes[ 0 ] , 0 ) ;
2270
2270
2271
+ chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
2271
2272
chanmon_cfgs[ 0 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
2272
2273
nodes[ 0 ] . node . claim_funds ( payment_preimage_0) ;
2273
2274
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
0 commit comments