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

feat: remove full state diff deserialization #50

Merged

Conversation

xJonathanLEI
Copy link
Contributor

contracts and classes are not used in the state transition process in any way, and do not contribute to output section transversal as they're at the end of the output stream. There's no reason to parse these and immediately discard them.

Additionally, Starknet v0.13.3 introduced state diff compression, meaning that the current parsing code is no longer correct - the current implementation cannot settle v0.13.3 blocks.

Instead of spending effort keeping up with all the future state diff compression technique updates, and unnecessarily incurring additional settlement costs, this part should just be removed.

The updated contract has been tested against both v0.13.2.1 and v0.13.3 blocks, with or without L1->L2 and/or L2->L1 messages. All work correctly.

`contracts` and `classes` are not used in the state transition process
in any way, and do not contribute to output section transversal as
they're at the end of the output stream. There's no reason to parse
these and immediately discard them.
@xJonathanLEI xJonathanLEI force-pushed the dev/rm_state_diff_deser branch from 230039d to 0fe18f4 Compare February 6, 2025 10:06
@glihm glihm changed the title feat: remove full state diff deseerialization feat: remove full state diff deserialization Feb 6, 2025
@glihm glihm merged commit a1de1b4 into keep-starknet-strange:main Feb 6, 2025
7 checks passed
@xJonathanLEI xJonathanLEI deleted the dev/rm_state_diff_deser branch February 6, 2025 16:43
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

Successfully merging this pull request may close these issues.

2 participants