Make state root calculation configurable on Flashblocks builder#164
Closed
haardikk21 wants to merge 8 commits intoflashbots:mainfrom
Closed
Make state root calculation configurable on Flashblocks builder#164haardikk21 wants to merge 8 commits intoflashbots:mainfrom
haardikk21 wants to merge 8 commits intoflashbots:mainfrom
Conversation
ferranbt
approved these changes
Jun 17, 2025
avalonche
reviewed
Jun 17, 2025
f7c8be6 to
34a1d72
Compare
Member
|
@protolambda has an idea to replace the state root with a "flashhash" which is just a hash of the transactions and the previous flashblock flashhash to preserve ordering integrity, I wonder if we could fit that into this effort |
Contributor
Author
what does this solve that we don't already get from flashblock index and cumulative txns/receipts list? |
Collaborator
|
@haardikk21 good to merge once rebase conflicts are resolved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
related to flashbots/rollup-boost#335
Makes state root computation configurable in the builder, setting it to just be the zero value if not enabled. Used in conjunction with linked rollup-boost modifications to have the L2 client compute the state root instead.
💡 Motivation and Context
The context here is that state root computation per flashblock is extremely slow, and there are concerns if we can launch on Base Mainnet and still produce flashblocks every 200ms with that. By disabling that computation in the builder, and instead having rollup boost use the L2 Client to recompute the state root, we get around that problem by introducing a minor overhead in the getPayload request to rollup boost.
✅ I have completed the following steps:
make lintmake test