Commit daf1360
authored
fix: satisfy Chonk num_circuits >= 4 assertion in mock IVC creation (#22188)
## Summary
PR #22181 tightened the `Chonk` constructor to require `num_circuits >=
4`, but `create_mock_chonk_from_constraints()` was passing
`constraints.size()` (1-2 for most kernels), causing assertion failures
during VK generation for `mock-protocol-circuits` and
`noir-protocol-circuits`.
## Fix
Pass `std::max(constraints.size(), 4)` since the mock doesn't use
`num_circuits` for anything — it directly manipulates the verification
queue.
## Verification
- All DSL tests pass (Hypernova, MockVerifier, ChonkRecursion)
- `mock-protocol-circuits` bootstrap: 11/11 circuits pass
- `noir-protocol-circuits` bootstrap: 120/120 circuits pass
ClaudeBox log: https://claudebox.work/s/71d20ef48c81e6e3?run=11 parent 57280d7 commit daf1360
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments