File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -1098,6 +1098,8 @@ impl Node {
10981098 & * sync_cmon as & ( dyn Confirm + Sync + Send ) ,
10991099 & * sync_sweeper as & ( dyn Confirm + Sync + Send ) ,
11001100 ] ;
1101+ let sync_wallet_timestamp = Arc :: clone ( & self . latest_wallet_sync_timestamp ) ;
1102+ let sync_onchain_wallet_timestamp = Arc :: clone ( & self . latest_onchain_wallet_sync_timestamp ) ;
11011103 let sync_monitor_archival_height = Arc :: clone ( & self . latest_channel_monitor_archival_height ) ;
11021104
11031105 tokio:: task:: block_in_place ( move || {
@@ -1111,6 +1113,11 @@ impl Node {
11111113 "Sync of on-chain wallet finished in {}ms." ,
11121114 now. elapsed( ) . as_millis( )
11131115 ) ;
1116+ let unix_time_secs_opt = SystemTime :: now ( )
1117+ . duration_since ( UNIX_EPOCH )
1118+ . ok ( )
1119+ . map ( |d| d. as_secs ( ) ) ;
1120+ * sync_onchain_wallet_timestamp. write ( ) . unwrap ( ) = unix_time_secs_opt;
11141121 } ,
11151122 Err ( e) => {
11161123 log_error ! ( sync_logger, "Sync of on-chain wallet failed: {}" , e) ;
@@ -1127,6 +1134,12 @@ impl Node {
11271134 now. elapsed( ) . as_millis( )
11281135 ) ;
11291136
1137+ let unix_time_secs_opt = SystemTime :: now ( )
1138+ . duration_since ( UNIX_EPOCH )
1139+ . ok ( )
1140+ . map ( |d| d. as_secs ( ) ) ;
1141+ * sync_wallet_timestamp. write ( ) . unwrap ( ) = unix_time_secs_opt;
1142+
11301143 periodically_archive_fully_resolved_monitors (
11311144 archive_cman,
11321145 archive_cmon,
You can’t perform that action at this time.
0 commit comments