-
Notifications
You must be signed in to change notification settings - Fork 9
Make state root calculation configurable on Flashblocks builder #164
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
base: main
Are you sure you want to change the base?
Make state root calculation configurable on Flashblocks builder #164
Conversation
f7c8be6
to
34a1d72
Compare
@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 |
what does this solve that we don't already get from flashblock index and cumulative txns/receipts list? |
📝 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 lint
make test