mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): payload builder AT on NodeComponents and FullNodeComponents (#11529)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -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
|
||||
|
||||
@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user