Skip to content

Commit

Permalink
Merge pull request #179 from privacy-scaling-explorations/feature/rev…
Browse files Browse the repository at this point in the history
…ert-assign-overwrite-check

Revert double-assignment mock prover check
  • Loading branch information
ed255 authored May 3, 2023
2 parents 1a4df10 + f82b201 commit be95568
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions halo2_proofs/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,12 +461,7 @@ impl<F: Field> Assignment<F> for MockProver<F> {
.get_mut(column.index())
.and_then(|v| v.get_mut(row))
.expect("bounds failure");
if let CellValue::Assigned(value) = value {
// Inconsistent assignment between different phases.
assert_eq!(value, &to, "value={:?}, to={:?}", value, &to);
} else {
*value = CellValue::Assigned(to);
}
*value = CellValue::Assigned(to);
}
Err(err) => {
// Propagate `assign` error if the column is in current phase.
Expand Down

0 comments on commit be95568

Please sign in to comment.