Skip to content

Commit

Permalink
revert fmt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft committed Oct 22, 2024
1 parent 59e77ae commit 4da5143
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/chainspec/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
}
Expand Down Expand Up @@ -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,
})
Expand All @@ -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 {
Expand Down

0 comments on commit 4da5143

Please sign in to comment.