Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check compressed state diff size before sending seq_commtiments #1213

Open
ercecan opened this issue Sep 20, 2024 · 0 comments
Open

Check compressed state diff size before sending seq_commtiments #1213

ercecan opened this issue Sep 20, 2024 · 0 comments

Comments

@ercecan
Copy link
Member

ercecan commented Sep 20, 2024

          Is this only applicable to prover? because we also calculate the state diff size in the sequencer?

// Serialize the state diff to check size later.
let serialized_state_diff = borsh::to_vec(&merged_state_diff)?;
let state_diff_threshold_reached =
serialized_state_diff.len() as u64 > MAX_STATEDIFF_SIZE_COMMITMENT_THRESHOLD;

Originally posted by @rakanalh in #1212 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant