Trait reth::builder::components::PayloadServiceBuilder
source · pub trait PayloadServiceBuilder<Node, Pool>: Sendwhere
Node: FullNodeTypes,
Pool: TransactionPool,{
// Required method
fn spawn_payload_service(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> impl Future<Output = Result<PayloadBuilderHandle<<Node as NodeTypes>::Engine>, Report>> + Send;
}
Expand description
A type that knows how to spawn the payload service.
Required Methods§
sourcefn spawn_payload_service(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> impl Future<Output = Result<PayloadBuilderHandle<<Node as NodeTypes>::Engine>, Report>> + Send
fn spawn_payload_service( self, ctx: &BuilderContext<Node>, pool: Pool, ) -> impl Future<Output = Result<PayloadBuilderHandle<<Node as NodeTypes>::Engine>, Report>> + Send
Spawns the payload service and returns the handle to it.
The BuilderContext
is provided to allow access to the node’s configuration.
Object Safety§
This trait is not object safe.