Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions crates/node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,12 @@ struct Args {
#[command(flatten)]
pub rollup_args: RollupArgs,

#[arg(long = "websocket-url", value_name = "WEBSOCKET_URL")]
pub websocket_url: Option<String>,
#[arg(
long = "websocket-url",
value_name = "WEBSOCKET_URL",
value_parser = clap::value_parser!(Url)
)]
pub websocket_url: Option<Url>,

/// Enable transaction tracing ExEx for mempool-to-block timing analysis
#[arg(
Expand All @@ -48,6 +52,7 @@ struct Args {
}

impl Args {
#[inline]
fn flashblocks_enabled(&self) -> bool {
self.websocket_url.is_some()
}
Expand Down