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

Introduce `HashedPostStateProvider` #23

Closed frisitano closed 1 month ago

frisitano commented 1 month ago

Dependencies

This PR builds on #11867 and should be reviewed after #11867 is merged.

Overview

This PR introduces the HashedPostStateProvider trait and implements it on StateProvider's and parent objects. This allows for HashedPostState to be instantiated using the StateCommitment::KeyHasher type available in the providers.