File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
lightning-transaction-sync/src Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 86
86
let mut sync_state = self . sync_state . lock ( ) . unwrap ( ) ;
87
87
88
88
log_trace ! ( self . logger, "Starting transaction sync." ) ;
89
+ #[ cfg( feature = "time" ) ]
89
90
let start_time = Instant :: now ( ) ;
90
91
let mut num_confirmed = 0 ;
91
92
let mut num_unconfirmed = 0 ;
@@ -210,10 +211,15 @@ where
210
211
sync_state. pending_sync = false ;
211
212
}
212
213
}
214
+ #[ cfg( feature = "time" ) ]
213
215
log_debug ! ( self . logger,
214
216
"Finished transaction sync at tip {} in {}ms: {} confirmed, {} unconfirmed." ,
215
217
tip_header. block_hash( ) , start_time. elapsed( ) . as_millis( ) , num_confirmed,
216
218
num_unconfirmed) ;
219
+ #[ cfg( not( feature = "time" ) ) ]
220
+ log_debug ! ( self . logger,
221
+ "Finished transaction sync at tip {}: {} confirmed, {} unconfirmed." ,
222
+ tip_header. block_hash( ) , num_confirmed, num_unconfirmed) ;
217
223
Ok ( ( ) )
218
224
}
219
225
You can’t perform that action at this time.
0 commit comments