From 2325a5ade200bac388612dfb4edfd011af6e5832 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Sat, 7 Dec 2024 01:44:33 -0500 Subject: [PATCH] Fail when running the `token-accounts-by-owner` benchmark suite without supplying `--mint` (#3964) Log an error when running the `token-account-for-owner` suite without supplying `--mint` --- accounts-cluster-bench/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accounts-cluster-bench/src/main.rs b/accounts-cluster-bench/src/main.rs index 7ae9b3b49dad9b..ff8d4151b0206d 100644 --- a/accounts-cluster-bench/src/main.rs +++ b/accounts-cluster-bench/src/main.rs @@ -949,6 +949,9 @@ fn main() { .takes_value(true) .value_name("RPC_BENCH_TYPE(S)") .multiple(true) + .requires_ifs(&[ + ("token-accounts-by-owner", "mint"), + ]) .help("Spawn a thread which calls a specific RPC method in a loop to benchmark it"), ) .get_matches();