mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 00:03:10 +00:00
Merge pull request #1171 from topos-protocol/exception-flag
Set exception flag to 1.
This commit is contained in:
commit
397ee26604
@ -708,6 +708,8 @@ pub(crate) fn generate_exception<F: Field>(
|
||||
return Err(ProgramError::GasLimitError);
|
||||
}
|
||||
|
||||
row.op.exception = F::ONE;
|
||||
|
||||
let disallowed_len = F::from_canonical_usize(MAX_USER_STACK_SIZE + 1);
|
||||
let diff = row.stack_len - disallowed_len;
|
||||
if let Some(inv) = diff.try_inverse() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user