@@ -119,8 +119,8 @@ impl BerachainChainSpec {
119119 // We filter out TTD-based forks w/o a pre-known block since those do not show up in
120120 // the fork filter.
121121 Some ( match condition {
122- ForkCondition :: Block ( block) |
123- ForkCondition :: TTD { fork_block : Some ( block) , .. } => ForkFilterKey :: Block ( block) ,
122+ ForkCondition :: Block ( block)
123+ | ForkCondition :: TTD { fork_block : Some ( block) , .. } => ForkFilterKey :: Block ( block) ,
124124 ForkCondition :: Timestamp ( time) => ForkFilterKey :: Time ( time) ,
125125 _ => return None ,
126126 } )
@@ -152,8 +152,8 @@ impl BerachainChainSpec {
152152 for ( _, cond) in self . inner . hardforks . forks_iter ( ) {
153153 // handle block based forks and the sepolia merge netsplit block edge case (TTD
154154 // ForkCondition with Some(block))
155- if let ForkCondition :: Block ( block) |
156- ForkCondition :: TTD { fork_block : Some ( block) , .. } = cond
155+ if let ForkCondition :: Block ( block)
156+ | ForkCondition :: TTD { fork_block : Some ( block) , .. } = cond
157157 {
158158 if head. number >= block {
159159 // skip duplicated hardforks: hardforks enabled at genesis block
@@ -550,8 +550,8 @@ impl From<Genesis> for BerachainChainSpec {
550550 }
551551
552552 // Validate Prague3 ordering if configured (Prague3 must come at or after Prague2)
553- if let Some ( prague3_config) = prague3_config_opt. as_ref ( ) &&
554- prague3_config. time < prague2_config. time
553+ if let Some ( prague3_config) = prague3_config_opt. as_ref ( )
554+ && prague3_config. time < prague2_config. time
555555 {
556556 panic ! (
557557 "Prague3 hardfork must activate at or after Prague2 hardfork. Prague2 time: {}, Prague3 time: {}." ,
0 commit comments