mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
chore: remove InspectorStack (#8073)
This commit is contained in:
@@ -19,7 +19,6 @@ reth-blockchain-tree.workspace = true
|
||||
reth-exex.workspace = true
|
||||
reth-evm.workspace = true
|
||||
reth-provider.workspace = true
|
||||
reth-revm.workspace = true
|
||||
reth-db.workspace = true
|
||||
reth-rpc-engine-api.workspace = true
|
||||
reth-rpc.workspace = true
|
||||
|
||||
@@ -27,7 +27,6 @@ use reth_node_core::{
|
||||
};
|
||||
use reth_primitives::{constants::eip4844::MAINNET_KZG_TRUSTED_SETUP, ChainSpec};
|
||||
use reth_provider::{providers::BlockchainProvider, ChainSpecProvider};
|
||||
use reth_revm::stack::{InspectorStack, InspectorStackConfig};
|
||||
use reth_tasks::TaskExecutor;
|
||||
use reth_transaction_pool::{PoolConfig, TransactionPool};
|
||||
pub use states::*;
|
||||
@@ -461,28 +460,6 @@ impl<Node: FullNodeTypes> BuilderContext<Node> {
|
||||
&self.config
|
||||
}
|
||||
|
||||
/// Returns an inspector stack if configured.
|
||||
///
|
||||
/// This can be used to debug block execution.
|
||||
pub fn inspector_stack(&self) -> Option<InspectorStack> {
|
||||
use reth_revm::stack::Hook;
|
||||
let stack_config = InspectorStackConfig {
|
||||
use_printer_tracer: self.config.debug.print_inspector,
|
||||
hook: if let Some(hook_block) = self.config.debug.hook_block {
|
||||
Hook::Block(hook_block)
|
||||
} else if let Some(tx) = self.config.debug.hook_transaction {
|
||||
Hook::Transaction(tx)
|
||||
} else if self.config.debug.hook_all {
|
||||
Hook::All
|
||||
} else {
|
||||
// no inspector
|
||||
return None
|
||||
},
|
||||
};
|
||||
|
||||
Some(InspectorStack::new(stack_config))
|
||||
}
|
||||
|
||||
/// Returns the data dir of the node.
|
||||
///
|
||||
/// This gives access to all relevant files and directories of the node's datadir.
|
||||
|
||||
Reference in New Issue
Block a user