File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1666,9 +1666,7 @@ impl LeiosNode {
1666
1666
// η is the "quality parameter" (expected block rate), and L is stage length.
1667
1667
let old_pipelines =
1668
1668
( 3 * self . sim_config . praos_chain_quality ) . div_ceil ( self . sim_config . stage_length ) ;
1669
- let oldest_included_pipeline = pipeline
1670
- . checked_sub ( old_pipelines)
1671
- . unwrap_or ( newest_included_pipeline) ;
1669
+ let oldest_included_pipeline = pipeline. checked_sub ( old_pipelines) . unwrap_or_default ( ) ;
1672
1670
1673
1671
Some ( oldest_included_pipeline..=newest_included_pipeline)
1674
1672
}
Original file line number Diff line number Diff line change @@ -632,9 +632,7 @@ impl StracciatellaLeiosNode {
632
632
// η is the "quality parameter" (expected block rate), and L is stage length.
633
633
let old_pipelines =
634
634
( 3 * self . sim_config . praos_chain_quality ) . div_ceil ( self . sim_config . stage_length ) ;
635
- let oldest_included_pipeline = pipeline
636
- . checked_sub ( old_pipelines)
637
- . unwrap_or ( newest_included_pipeline) ;
635
+ let oldest_included_pipeline = pipeline. checked_sub ( old_pipelines) . unwrap_or_default ( ) ;
638
636
639
637
Some ( oldest_included_pipeline..=newest_included_pipeline)
640
638
}
You can’t perform that action at this time.
0 commit comments