Skip to content

Commit

Permalink
Add temporary Canyon warning
Browse files Browse the repository at this point in the history
  • Loading branch information
clabby committed Nov 16, 2023
1 parent 460b5f6 commit ca509c6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/reth/src/optimism.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,21 @@ compile_error!("Cannot build the `op-reth` binary with the `optimism` feature fl

#[cfg(feature = "optimism")]
fn main() {
print_canyon_warning();
if let Err(err) = reth::cli::run() {
eprintln!("Error: {err:?}");
std::process::exit(1);
}
}

#[inline]
fn print_canyon_warning() {
println!("---------------------- [ WARNING! ] ----------------------");
println!("`op-reth` does not currently support the Canyon Hardfork,");
println!("which went live on 2023-14-11 12PM EST on Sepolia and Goerli.");
println!("The node will cease to sync at that blocktime (1699981200).");
println!("Please consult the Canyon Hardfork tracking issue to follow");
println!("along with the progress of the hardfork implementation:");
println!("https://github.com/paradigmxyz/reth/issues/5210");
println!("----------------------------------------------------------\n");
}

0 comments on commit ca509c6

Please sign in to comment.