feat(node-builder): expose block executor (#8617)

This commit is contained in:
Alexey Shekhirin
2024-06-05 19:23:04 +01:00
committed by GitHub
parent 5a4b3985ce
commit 93f776d19b
2 changed files with 4 additions and 0 deletions

View File

@ -449,6 +449,7 @@ where
let full_node = FullNode {
evm_config: node_adapter.components.evm_config().clone(),
block_executor: node_adapter.components.block_executor().clone(),
pool: node_adapter.components.pool().clone(),
network: node_adapter.components.network().clone(),
provider: node_adapter.provider.clone(),

View File

@ -37,6 +37,8 @@ pub trait Node<N: FullNodeTypes>: NodeTypes + Clone {
pub struct FullNode<Node: FullNodeComponents> {
/// The evm configuration.
pub evm_config: Node::Evm,
/// The executor of the node.
pub block_executor: Node::Executor,
/// The node's transaction pool.
pub pool: Node::Pool,
/// Handle to the node's network.
@ -100,6 +102,7 @@ impl<Node: FullNodeComponents> Clone for FullNode<Node> {
fn clone(&self) -> Self {
Self {
evm_config: self.evm_config.clone(),
block_executor: self.block_executor.clone(),
pool: self.pool.clone(),
network: self.network.clone(),
provider: self.provider.clone(),