diff --git a/tig-protocol/src/contracts/benchmarks.rs b/tig-protocol/src/contracts/benchmarks.rs index 8c06092f..0458809c 100644 --- a/tig-protocol/src/contracts/benchmarks.rs +++ b/tig-protocol/src/contracts/benchmarks.rs @@ -264,6 +264,9 @@ pub async fn submit_benchmark( } } }; + if end == 0 { + continue; + } let idx = rng.gen_range(0..end); lt_average_samples.insert(bundle[idx].0 as u64); }