diff --git a/crates/node/src/main.rs b/crates/node/src/main.rs index 0527577..786dac0 100644 --- a/crates/node/src/main.rs +++ b/crates/node/src/main.rs @@ -29,8 +29,12 @@ struct Args { #[command(flatten)] pub rollup_args: RollupArgs, - #[arg(long = "websocket-url", value_name = "WEBSOCKET_URL")] - pub websocket_url: Option, + #[arg( + long = "websocket-url", + value_name = "WEBSOCKET_URL", + value_parser = clap::value_parser!(Url) + )] + pub websocket_url: Option, /// Enable transaction tracing ExEx for mempool-to-block timing analysis #[arg( @@ -48,6 +52,7 @@ struct Args { } impl Args { + #[inline] fn flashblocks_enabled(&self) -> bool { self.websocket_url.is_some() }