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
8 changes: 8 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ struct Args {

#[arg(long, default_value = "bench_config.toml")]
config: String,

#[arg(long, default_value_t = false)]
faucet_only: bool,
}

// mod uniswap;
Expand Down Expand Up @@ -479,6 +482,11 @@ async fn start_bench() -> Result<()> {
.await?;
}

if args.faucet_only {
info!("Faucet distribution complete. Faucet-only mode enabled, exiting.");
return Ok(());
}

let tps = benchmark_config.target_tps as usize;
let duration_secs = benchmark_config.performance.duration_secs;
if benchmark_config.enable_swap_token {
Expand Down
Loading