Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kunxian-xia committed Nov 2, 2023
1 parent e617355 commit 8b3067e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mpt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ impl MptCircuitConfig {

let use_par = std::env::var("PARALLEL_SYN").map_or(false, |s| s == *"true");
if use_par {
println!("using par syn");
let n_assigned_rows = self.mpt_update.assign_par(layouter, proofs, randomness);

layouter.assign_region(
Expand All @@ -146,7 +147,7 @@ impl MptCircuitConfig {
all-zero row + at least 1 final padding row. Only {n_rows} rows available."
);

for offset in 0..(n_rows - (1 + n_assigned_rows)) {
for offset in (1 + n_assigned_rows)..n_rows {
self.mpt_update.assign_padding_row(&mut region, offset);
}

Expand Down

0 comments on commit 8b3067e

Please sign in to comment.