Merge pull request #1171 from topos-protocol/exception-flag

Set exception flag to 1.
This commit is contained in:
Jacqueline Nabaglo 2023-08-07 11:35:26 -07:00 committed by GitHub
commit 397ee26604
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {