Skip to content

Commit

Permalink
feat(node-builder): expose block executor (#8617)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Jun 5, 2024
1 parent 5a4b398 commit 93f776d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/node/builder/src/launch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
3 changes: 3 additions & 0 deletions crates/node/builder/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 93f776d

Please sign in to comment.