Skip to content

Commit

Permalink
force selection of --tpb or --tps
Browse files Browse the repository at this point in the history
zeroXbrock committed Oct 3, 2024
1 parent d15517c commit 6a9e1d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -116,6 +116,9 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
if txs_per_block.is_some() && txs_per_second.is_some() {
panic!("Cannot set both --txs-per-block and --txs-per-second");
}
if txs_per_block.is_none() && txs_per_second.is_none() {
panic!("Must set either --txs-per-block (--tpb) or --txs-per-second (--tps)");
}

if let Some(txs_per_block) = txs_per_block {
let scenario =

0 comments on commit 6a9e1d2

Please sign in to comment.