Expand description
Validates and caches BAL post-state, and prepares transaction forksβ parent-block BALs.
Re-exportsΒ§
use super::Fork;πuse crate::opts::ForkContext;πuse alloy_chains::Chain;πuse alloy_chains::NamedChain;πuse alloy_consensus::BlockHeader;πuse alloy_eips::BlockId;πuse alloy_eips::eip7928::BlockAccessList;πuse alloy_eips::eip7928::compute_block_access_list_hash;πuse alloy_eips::eip7928::validate_block_access_list;πuse alloy_hardforks::EthereumHardfork;πuse alloy_network::AnyNetwork;πuse alloy_network::AnyRpcBlock;πuse alloy_primitives::B256;πuse alloy_primitives::U256;πuse alloy_primitives::map::U256Map;πuse alloy_provider::Provider;πuse eyre::Result;πuse eyre::WrapErr;πuse foundry_common::provider::is_rpc_method_not_found;πuse foundry_evm_networks::NetworkConfigs;πuse foundry_fork_db::cache::MemDb;πuse revm::state::AccountInfo;πuse revm::state::Bytecode;πuse std::time::Duration;π
FunctionsΒ§
- cache_
bal - Inserts a validated BALβs post-state into its selected remote cache, retaining existing values.
- cache_
bal_ πaccounts - Inserts complete account post-states, retaining existing accounts, and returns the added count.
- cache_
bal_ πstorage - Inserts final slot writes, retaining cached values and leaving read-only slots unknown.
- eligible_
source π - immutable_
source π - prepare π
- Fetches and validates a parent BAL without mutating a database or propagating BAL failures.
- validate_
bal - Validates the entire BAL before any values can enter the cache.