chore(sdk): payload builder AT on NodeComponents and FullNodeComponents (#11529)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Emilia Hane
2024-11-09 10:53:33 +01:00
committed by GitHub
parent 430fe0de18
commit a299f501ce
10 changed files with 57 additions and 55 deletions

View File

@ -25,7 +25,6 @@ reth-fs-util.workspace = true
reth-metrics.workspace = true
reth-node-api.workspace = true
reth-node-core.workspace = true
reth-payload-builder.workspace = true
reth-primitives = { workspace = true, features = ["secp256k1"] }
reth-primitives-traits.workspace = true
reth-provider.workspace = true

View File

@ -1,14 +1,12 @@
use std::fmt::Debug;
use crate::{ExExContextDyn, ExExEvent, ExExNotifications, ExExNotificationsStream};
use reth_exex_types::ExExHead;
use reth_node_api::{FullNodeComponents, NodeTypes, NodeTypesWithEngine};
use reth_node_api::{FullNodeComponents, NodeTypes};
use reth_node_core::node_config::NodeConfig;
use reth_primitives::Head;
use reth_tasks::TaskExecutor;
use std::fmt::Debug;
use tokio::sync::mpsc::UnboundedSender;
use crate::{ExExContextDyn, ExExEvent, ExExNotifications, ExExNotificationsStream};
/// Captures the context that an `ExEx` has access to.
pub struct ExExContext<Node: FullNodeComponents> {
/// The current head of the blockchain at launch.
@ -97,10 +95,7 @@ where
}
/// Returns the handle to the payload builder service.
pub fn payload_builder(
&self,
) -> &reth_payload_builder::PayloadBuilderHandle<<Node::Types as NodeTypesWithEngine>::Engine>
{
pub fn payload_builder(&self) -> &Node::PayloadBuilder {
self.components.payload_builder()
}