Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix max_exp_steps param
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnevadoc committed Jun 20, 2023
1 parent b985391 commit 6a82fce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bus-mapping/src/circuit_input_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,11 @@ impl CircuitInputBuilder<DynamicCParams> {
.transactions
.iter()
.fold(0, |acc, tx| acc + tx.input.len());
let max_exp_steps = self.block.exp_events.len();
let max_exp_steps = self
.block
.exp_events
.iter()
.fold(0usize, |acc, e| acc + e.steps.len());
// The `+ 2` is used to take into account the two extra empty copy rows needed
// to satisfy the query at `Rotation(2)` performed inside of the
// `rows[2].value == rows[0].value * r + rows[1].value` requirement in the RLC
Expand Down

0 comments on commit 6a82fce

Please sign in to comment.