-
Notifications
You must be signed in to change notification settings - Fork 5
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: mpt feature #122
feat: mpt feature #122
Conversation
…mpt mode Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
Why do we gate the packing here? I thought we didn't need the scroll feature to be activated when we are using the mpt? |
The issue is that a lot of the scroll crates need the scroll feature to be active. |
Understood, that makes sense. The alternative would be to put non-standard bmpt logic behind a |
Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Has this been tested? I propose we add some test evidence to this PR before merge. A proposal would be to sync and compare the state root against L2 geth for blocks 1000, 10000 and 50000. What do you think?
@frisitano below is the evidence for correct sync for blocks 1000, 10000 and 50000. Block 1000Block 10000Block 50000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM!
Signed-off-by: Gregory Edison <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Adds a "mpt" feature, allowing to feature gate the packing and unpacking of the nibbles, as well as correctly compute the genesis block state root.
Resolves #121 and resolves #117