diff --git a/crates/op-rbuilder/src/args/op.rs b/crates/op-rbuilder/src/args/op.rs index e5c718d8..6b93f6d1 100644 --- a/crates/op-rbuilder/src/args/op.rs +++ b/crates/op-rbuilder/src/args/op.rs @@ -95,6 +95,14 @@ fn expand_path(s: &str) -> Result { /// Parameters for Flashblocks configuration #[derive(Debug, Clone, PartialEq, Eq, clap::Args)] pub struct FlashblocksArgs { + /// DEPRECATED. Will be removed in next minor release + #[arg( + long = "flashblocks.enabled", + default_value = "true", + env = "ENABLE_FLASHBLOCKS" + )] + pub enabled: bool, + /// The port that we bind to for the websocket server that provides flashblocks #[arg( long = "flashblocks.port", diff --git a/crates/op-rbuilder/src/builder/config.rs b/crates/op-rbuilder/src/builder/config.rs index 6905da8d..9c943ce5 100644 --- a/crates/op-rbuilder/src/builder/config.rs +++ b/crates/op-rbuilder/src/builder/config.rs @@ -5,6 +5,7 @@ use core::{ net::{Ipv4Addr, SocketAddr}, time::Duration, }; +use tracing::warn; /// Configuration values that are specific to the flashblocks builder. #[derive(Debug, Clone)] @@ -86,6 +87,12 @@ impl TryFrom for FlashblocksConfig { type Error = eyre::Report; fn try_from(args: OpRbuilderArgs) -> Result { + if !args.flashblocks.enabled { + warn!( + "Standard building mode is deprecated and this flag will be removed in a future release. Running in flashblocks mode" + ) + } + let interval = Duration::from_millis(args.flashblocks.flashblocks_block_time); let ws_addr = SocketAddr::new(