diff --git a/src/graph/mod.rs b/src/graph/mod.rs index 153bdf21d..b0d3651cb 100644 --- a/src/graph/mod.rs +++ b/src/graph/mod.rs @@ -818,6 +818,9 @@ impl GraphCircuit { settings_mut.run_args.logrows = std::cmp::max(settings_mut.run_args.logrows, min_rows_from_constraints); + settings_mut.run_args.logrows = + std::cmp::min(MAX_PUBLIC_SRS, settings_mut.run_args.logrows); + info!( "setting bits to: {}, setting logrows to: {}", self.settings().run_args.bits, @@ -840,7 +843,7 @@ impl GraphCircuit { .log2() .ceil() as usize + 1; - if recommended_bits <= (MAX_PUBLIC_SRS - 1) as usize { + if recommended_bits <= (MAX_PUBLIC_SRS-1) as usize { self.calc_min_logrows(&res, blinding_offset) } else { let err_string = format!(