From ca509c6bec72b4a02cc24e284884546b64ec5572 Mon Sep 17 00:00:00 2001 From: clabby Date: Thu, 16 Nov 2023 10:56:02 -0500 Subject: [PATCH] Add temporary `Canyon` warning --- bin/reth/src/optimism.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bin/reth/src/optimism.rs b/bin/reth/src/optimism.rs index 554b91a3ae280..61f6bf2220811 100644 --- a/bin/reth/src/optimism.rs +++ b/bin/reth/src/optimism.rs @@ -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"); +}