File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -298,28 +298,28 @@ pub fn spawn_notifier<T: BeaconChainTypes>(
298298
299299 let speed = speedo. slots_per_second ( ) ;
300300 let display_speed = speed. is_some_and ( |speed| speed != 0.0 ) ;
301-
301+ let est_time_in_secs = if let ( Some ( da_boundary_epoch) , Some ( original_slot) ) = (
302+ beacon_chain. get_column_da_boundary ( ) ,
303+ original_earliest_data_column_slot,
304+ ) {
305+ let target = original_slot. saturating_sub (
306+ da_boundary_epoch. start_slot ( T :: EthSpec :: slots_per_epoch ( ) ) ,
307+ ) ;
308+ speedo. estimated_time_till_slot ( target)
309+ } else {
310+ None
311+ } ;
302312 if display_speed {
303313 info ! (
304314 distance,
305315 speed = sync_speed_pretty( speed) ,
306- est_time =
307- estimated_time_pretty( beacon_chain. get_column_da_boundary( ) . and_then(
308- |da_boundary| speedo. estimated_time_till_slot(
309- da_boundary. start_slot( T :: EthSpec :: slots_per_epoch( ) )
310- )
311- ) ) ,
316+ est_time = estimated_time_pretty( est_time_in_secs) ,
312317 "Downloading historical data columns"
313318 ) ;
314319 } else {
315320 info ! (
316321 distance,
317- est_time =
318- estimated_time_pretty( beacon_chain. get_column_da_boundary( ) . and_then(
319- |da_boundary| speedo. estimated_time_till_slot(
320- da_boundary. start_slot( T :: EthSpec :: slots_per_epoch( ) )
321- )
322- ) ) ,
322+ est_time = estimated_time_pretty( est_time_in_secs) ,
323323 "Downloading historical data columns"
324324 ) ;
325325 }
You can’t perform that action at this time.
0 commit comments