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

Closed
Tracked by #1281
ercecan opened this issue Sep 20, 2024 · 0 comments · Fixed by #1349
Closed
Tracked by #1281

Check compressed state diff size before sending seq_commtiments #1213

ercecan opened this issue Sep 20, 2024 · 0 comments · Fixed by #1349
Assignees
Labels
P-high High priority

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
P-high High priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants