scroll-tech / reth

Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust
https://reth.rs/
Apache License 2.0
8 stars 3 forks source link

feat: scroll state provider #31

Closed greged93 closed 1 week ago

greged93 commented 3 weeks ago

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.