@@ -365,7 +365,7 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out) {
365
365
let keys_manager = Arc :: new( KeyProvider { node_id: $node_id, rand_bytes_id: atomic:: AtomicU32 :: new( 0 ) , enforcement_states: Mutex :: new( HashMap :: new( ) ) } ) ;
366
366
let monitor = Arc :: new( TestChainMonitor :: new( broadcast. clone( ) , logger. clone( ) , $fee_estimator. clone( ) ,
367
367
Arc :: new( TestPersister {
368
- update_ret: Mutex :: new( ChannelMonitorUpdateStatus :: Complete )
368
+ update_ret: Mutex :: new( ChannelMonitorUpdateStatus :: Completed )
369
369
} ) , Arc :: clone( & keys_manager) ) ) ;
370
370
371
371
let mut config = UserConfig :: default ( ) ;
@@ -387,7 +387,7 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out) {
387
387
let logger: Arc <dyn Logger > = Arc :: new( test_logger:: TestLogger :: new( $node_id. to_string( ) , out. clone( ) ) ) ;
388
388
let chain_monitor = Arc :: new( TestChainMonitor :: new( broadcast. clone( ) , logger. clone( ) , $fee_estimator. clone( ) ,
389
389
Arc :: new( TestPersister {
390
- update_ret: Mutex :: new( ChannelMonitorUpdateStatus :: Complete )
390
+ update_ret: Mutex :: new( ChannelMonitorUpdateStatus :: Completed )
391
391
} ) , Arc :: clone( & $keys_manager) ) ) ;
392
392
393
393
let mut config = UserConfig :: default ( ) ;
@@ -418,7 +418,7 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out) {
418
418
let res = ( <( BlockHash , ChanMan ) >:: read( & mut Cursor :: new( & $ser. 0 ) , read_args) . expect( "Failed to read manager" ) . 1 , chain_monitor. clone( ) ) ;
419
419
for ( funding_txo, mon) in monitors. drain( ) {
420
420
assert_eq!( chain_monitor. chain_monitor. watch_channel( funding_txo, mon) ,
421
- ChannelMonitorUpdateStatus :: Complete ) ;
421
+ ChannelMonitorUpdateStatus :: Completed ) ;
422
422
}
423
423
res
424
424
} }
@@ -898,9 +898,9 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out) {
898
898
0x00 => * monitor_a. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: InProgress ,
899
899
0x01 => * monitor_b. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: InProgress ,
900
900
0x02 => * monitor_c. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: InProgress ,
901
- 0x04 => * monitor_a. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Complete ,
902
- 0x05 => * monitor_b. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Complete ,
903
- 0x06 => * monitor_c. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Complete ,
901
+ 0x04 => * monitor_a. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Completed ,
902
+ 0x05 => * monitor_b. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Completed ,
903
+ 0x06 => * monitor_c. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Completed ,
904
904
905
905
0x08 => {
906
906
if let Some ( ( id, _) ) = monitor_a. latest_monitors . lock ( ) . unwrap ( ) . get ( & chan_1_funding) {
@@ -1125,9 +1125,9 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out) {
1125
1125
// after we resolve all pending events.
1126
1126
// First make sure there are no pending monitor updates, resetting the error state
1127
1127
// and calling force_channel_monitor_updated for each monitor.
1128
- * monitor_a. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Complete ;
1129
- * monitor_b. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Complete ;
1130
- * monitor_c. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Complete ;
1128
+ * monitor_a. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Completed ;
1129
+ * monitor_b. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Completed ;
1130
+ * monitor_c. persister . update_ret . lock ( ) . unwrap ( ) = ChannelMonitorUpdateStatus :: Completed ;
1131
1131
1132
1132
if let Some ( ( id, _) ) = monitor_a. latest_monitors . lock ( ) . unwrap ( ) . get ( & chan_1_funding) {
1133
1133
monitor_a. chain_monitor . force_channel_monitor_updated ( chan_1_funding, * id) ;
0 commit comments