mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
Introduce HashedPostStateProvider (#12607)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -3,7 +3,7 @@ use alloy_eips::eip7685::Requests;
|
||||
use alloy_primitives::{logs_bloom, Address, BlockNumber, Bloom, Log, B256, U256};
|
||||
use reth_primitives::Receipts;
|
||||
use reth_primitives_traits::{receipt::ReceiptExt, Account, Bytecode, Receipt, StorageEntry};
|
||||
use reth_trie::HashedPostState;
|
||||
use reth_trie::{HashedPostState, KeyHasher};
|
||||
use revm::{
|
||||
db::{states::BundleState, BundleAccount},
|
||||
primitives::AccountInfo,
|
||||
@ -164,8 +164,8 @@ impl<T> ExecutionOutcome<T> {
|
||||
|
||||
/// Returns [`HashedPostState`] for this execution outcome.
|
||||
/// See [`HashedPostState::from_bundle_state`] for more info.
|
||||
pub fn hash_state_slow(&self) -> HashedPostState {
|
||||
HashedPostState::from_bundle_state(&self.bundle.state)
|
||||
pub fn hash_state_slow<KH: KeyHasher>(&self) -> HashedPostState {
|
||||
HashedPostState::from_bundle_state::<KH>(&self.bundle.state)
|
||||
}
|
||||
|
||||
/// Transform block number to the index of block.
|
||||
|
||||
Reference in New Issue
Block a user