chore: move dao hardfork constants to evm-ethereum (#8078)

This commit is contained in:
Matthias Seitz
2024-05-03 17:26:48 +02:00
committed by GitHub
parent d9f4adc2eb
commit 66f70838ae
4 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,10 @@
//! Ethereum block executor. //! Ethereum block executor.
use crate::{verify::verify_receipts, EthEvmConfig}; use crate::{
dao_fork::{DAO_HARDFORK_BENEFICIARY, DAO_HARDKFORK_ACCOUNTS},
verify::verify_receipts,
EthEvmConfig,
};
use reth_evm::{ use reth_evm::{
execute::{ execute::{
BatchBlockExecutionOutput, BatchExecutor, BlockExecutionInput, BlockExecutionOutput, BatchBlockExecutionOutput, BatchExecutor, BlockExecutionInput, BlockExecutionOutput,
@ -19,7 +23,6 @@ use reth_primitives::{
use reth_revm::{ use reth_revm::{
batch::{BlockBatchRecord, BlockExecutorStats}, batch::{BlockBatchRecord, BlockExecutorStats},
db::states::bundle_state::BundleRetention, db::states::bundle_state::BundleRetention,
eth_dao_fork::{DAO_HARDFORK_BENEFICIARY, DAO_HARDKFORK_ACCOUNTS},
state_change::{apply_beacon_root_contract_call, post_block_balance_increments}, state_change::{apply_beacon_root_contract_call, post_block_balance_increments},
Evm, State, Evm, State,
}; };

View File

@ -18,6 +18,9 @@ use reth_revm::{Database, EvmBuilder};
pub mod execute; pub mod execute;
pub mod verify; pub mod verify;
/// Ethereum DAO hardfork state change data.
pub mod dao_fork;
/// Ethereum-related EVM configuration. /// Ethereum-related EVM configuration.
#[derive(Debug, Clone, Copy, Default)] #[derive(Debug, Clone, Copy, Default)]
#[non_exhaustive] #[non_exhaustive]

View File

@ -16,9 +16,6 @@ pub mod batch;
/// State changes that are not related to transactions. /// State changes that are not related to transactions.
pub mod state_change; pub mod state_change;
/// Ethereum DAO hardfork state change data.
pub mod eth_dao_fork;
/// Common test helpers /// Common test helpers
#[cfg(any(test, feature = "test-utils"))] #[cfg(any(test, feature = "test-utils"))]
pub mod test_utils; pub mod test_utils;