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: scroll state provider #31

Conversation

greged93
Copy link
Collaborator

@greged93 greged93 commented Nov 8, 2024

Context

This PR introduces a ScrollStateProviderDatabase, a similar construct as the StateProviderDatabase but providing a cache layer for the code size and the Poseidon code hash of every touched account's bytecode via the ScrollPostExecutionContext (mapping from Keccak hash of an account's bytecode to the code size and Poseidon hash).

Build towards #7 and should be reviewed after #30.

Signed-off-by: Gregory Edison <[email protected]>
@greged93 greged93 marked this pull request as draft November 9, 2024 07:29
Comment on lines +203 to +206
#[cfg(feature = "scroll")]
code_size: 0,
#[cfg(feature = "scroll")]
poseidon_code_hash: B256::ZERO,
Copy link
Collaborator Author

@greged93 greged93 Nov 9, 2024

Choose a reason for hiding this comment

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

This is added as an intermediate solution in order for the clippy check to pass. Once the whole code base is migrated to use our ScrollAccountInfo, this can be removed.

@greged93 greged93 force-pushed the greged93/feat/scroll-state-provider branch 3 times, most recently from 0b9285f to 0936180 Compare November 9, 2024 10:59
@greged93 greged93 force-pushed the greged93/feat/scroll-state-provider branch from 0936180 to 2a46a48 Compare November 10, 2024 08:02
@greged93 greged93 closed this Nov 18, 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.

1 participant