diff --git a/Cargo.lock b/Cargo.lock index 6c11466404f9..043802649147 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7625,8 +7625,8 @@ dependencies = [ "reth-payload-builder-primitives", "reth-payload-primitives", "reth-primitives", - "reth-provider", "reth-revm", + "reth-storage-api", "reth-transaction-pool", "revm", "tracing", diff --git a/crates/ethereum/payload/Cargo.toml b/crates/ethereum/payload/Cargo.toml index b01f4c5bc74f..bec0b094c077 100644 --- a/crates/ethereum/payload/Cargo.toml +++ b/crates/ethereum/payload/Cargo.toml @@ -16,8 +16,8 @@ workspace = true reth-primitives.workspace = true reth-revm.workspace = true reth-transaction-pool.workspace = true -reth-provider.workspace = true reth-payload-builder.workspace = true +reth-storage-api.workspace = true reth-payload-builder-primitives.workspace = true reth-payload-primitives.workspace = true reth-execution-types.workspace = true diff --git a/crates/ethereum/payload/src/lib.rs b/crates/ethereum/payload/src/lib.rs index 575b12659c76..757b75018253 100644 --- a/crates/ethereum/payload/src/lib.rs +++ b/crates/ethereum/payload/src/lib.rs @@ -20,7 +20,7 @@ use reth_basic_payload_builder::{ PayloadConfig, }; use reth_chain_state::ExecutedBlock; -use reth_chainspec::ChainSpec; +use reth_chainspec::{ChainSpec, ChainSpecProvider}; use reth_errors::RethError; use reth_evm::{system_calls::SystemCaller, ConfigureEvm, NextBlockEnvAttributes}; use reth_evm_ethereum::{eip6110::parse_deposits_from_receipts, EthEvmConfig}; @@ -33,7 +33,6 @@ use reth_primitives::{ Block, BlockBody, BlockExt, EthereumHardforks, InvalidTransactionError, Receipt, TransactionSigned, }; -use reth_provider::{ChainSpecProvider, StateProviderFactory}; use reth_revm::database::StateProviderDatabase; use reth_transaction_pool::{ error::InvalidPoolTransactionError, noop::NoopTransactionPool, BestTransactions, @@ -52,6 +51,7 @@ use tracing::{debug, trace, warn}; mod config; pub use config::*; +use reth_storage_api::StateProviderFactory; type BestTransactionsIter = Box< dyn BestTransactions::Transaction>>>,