mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: move dao hardfork constants to evm-ethereum (#8078)
This commit is contained in:
@ -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,
|
||||||
};
|
};
|
||||||
|
|||||||
@ -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]
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user