Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Commit

Permalink
Remove optimism runtime check in reth bin
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Nov 3, 2023
1 parent fe52763 commit eeb2c97
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions bin/reth/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,7 @@ impl<Ext: RethCliExt> Cli<Ext> {
/// Convenience function for parsing CLI options, set up logging and run the chosen command.
#[inline]
pub fn run() -> eyre::Result<()> {
let cli = Cli::<()>::parse();

// Runtime safety check for the `optimism` feature flag
// being enabled on a non-OP Stack chain.
#[cfg(feature = "optimism")]
if !cli.chain.is_optimism() {
eyre::bail!(
"The `optimism` feature flag is enabled, but the chain is a non OP Stack chain."
)
}

cli.run()
Cli::<()>::parse().run()
}

/// Commands to be executed
Expand Down

0 comments on commit eeb2c97

Please sign in to comment.