From 4da5143eb85acc1bc45f931126d41cd9bae43409 Mon Sep 17 00:00:00 2001 From: smtmfft Date: Tue, 22 Oct 2024 15:23:58 +0000 Subject: [PATCH] revert fmt changes --- crates/chainspec/src/spec.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/crates/chainspec/src/spec.rs b/crates/chainspec/src/spec.rs index 1f89107fd454..2f9911258aff 100644 --- a/crates/chainspec/src/spec.rs +++ b/crates/chainspec/src/spec.rs @@ -689,14 +689,14 @@ impl ChainSpec { matches!( self.chain.kind(), ChainKind::Named( - NamedChain::Mainnet | - NamedChain::Morden | - NamedChain::Ropsten | - NamedChain::Rinkeby | - NamedChain::Goerli | - NamedChain::Kovan | - NamedChain::Holesky | - NamedChain::Sepolia + NamedChain::Mainnet + | NamedChain::Morden + | NamedChain::Ropsten + | NamedChain::Rinkeby + | NamedChain::Goerli + | NamedChain::Kovan + | NamedChain::Holesky + | NamedChain::Sepolia ) ) } @@ -999,8 +999,8 @@ impl ChainSpec { // We filter out TTD-based forks w/o a pre-known block since those do not show up in the // fork filter. Some(match condition { - ForkCondition::Block(block) | - ForkCondition::TTD { fork_block: Some(block), .. } => ForkFilterKey::Block(block), + ForkCondition::Block(block) + | ForkCondition::TTD { fork_block: Some(block), .. } => ForkFilterKey::Block(block), ForkCondition::Timestamp(time) => ForkFilterKey::Time(time), _ => return None, }) @@ -1018,8 +1018,8 @@ impl ChainSpec { for (_, cond) in self.forks_iter() { // handle block based forks and the sepolia merge netsplit block edge case (TTD // ForkCondition with Some(block)) - if let ForkCondition::Block(block) | - ForkCondition::TTD { fork_block: Some(block), .. } = cond + if let ForkCondition::Block(block) + | ForkCondition::TTD { fork_block: Some(block), .. } = cond { if cond.active_at_head(head) { if block != current_applied {