Skip to content

Conversation

@greged93
Copy link

@greged93 greged93 commented Nov 18, 2024

Overview

Introduces the scroll feature flag and Scroll Account changes. The following changes are implemented:

  • reth-scroll-* crates: introduces 4 Scroll related crates, which will accumulate as much changes as possible, in order to limit diff with upstream.
  • Account extending fields: code_size and poseidon_code_hash are added on the Ethereum account. These fields are needed for the computation of the state root.
  • ScrollStateProviderDatabase: a storage provider that implements the revm::Database trait and will thus be used during execution when the scroll feature flag is used. It caches all Scroll added fields for touched accounts during execution and can be used to build the ScrollBundleState from a revm::BundleState.

Notes

  • Some changes are marked as // TODO (scroll): .... These were added in order to make the current changes satisfy all clippy checks and will be updated in subsequent PR's related to the Account changes.
  • PR was rebased on 7f00db6 and only required some small fixes to the Cargo.lock file.

Builds towards #7

Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
Signed-off-by: Gregory Edison <[email protected]>
@greged93 greged93 force-pushed the feat/reth-scroll branch 2 times, most recently from cdd8185 to 6c120a1 Compare November 19, 2024 10:16
Signed-off-by: Gregory Edison <[email protected]>
@greged93 greged93 mentioned this pull request Nov 20, 2024
frisitano
frisitano previously approved these changes Nov 21, 2024
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! Left some minor comments inline. Once comments are answered / addressed we can merge.

@greged93 greged93 changed the title feat: Reth Scroll feat: reth-scroll crates Nov 22, 2024
Signed-off-by: Gregory Edison <[email protected]>
@frisitano frisitano self-requested a review November 25, 2024 08:23
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@frisitano frisitano merged commit 5f1c8e3 into scroll-tech:scroll Nov 25, 2024
40 checks passed
@frisitano frisitano mentioned this pull request Dec 6, 2024
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.

3 participants