paradigmxyz / reth

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

feat(storage): implement `BundleStateDataProvider` for `BundleStateWithReceipts` #8282

Closed shekhirin closed 4 weeks ago

shekhirin commented 4 weeks ago

It's not obvious how to use the BundleStateWithReceipts that you got from e.g. the ExExNotification as a state provider for the EVM execution.

This PR implements the BundleStateDataProvider for BundleStateWithReceipts by splitting it into two traits: one for general data access and the other for blockchain tree -specific.