reth_node_builder::components

Trait PayloadServiceBuilder

source
pub trait PayloadServiceBuilder<Node: FullNodeTypes, Pool: TransactionPool>: Send {
    // Required method
    fn spawn_payload_service(
        self,
        ctx: &BuilderContext<Node>,
        pool: Pool,
    ) -> impl Future<Output = Result<PayloadBuilderHandle<<Node::Types as NodeTypesWithEngine>::Engine>>> + Send;
}
Expand description

A type that knows how to spawn the payload service.

Required Methods§

source

fn spawn_payload_service( self, ctx: &BuilderContext<Node>, pool: Pool, ) -> impl Future<Output = Result<PayloadBuilderHandle<<Node::Types as NodeTypesWithEngine>::Engine>>> + 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.

Implementors§

source§

impl<Node, F, Fut, Pool> PayloadServiceBuilder<Node, Pool> for F
where Node: FullNodeTypes, Pool: TransactionPool, F: Fn(&BuilderContext<Node>, Pool) -> Fut + Send, Fut: Future<Output = Result<PayloadBuilderHandle<<Node::Types as NodeTypesWithEngine>::Engine>>> + Send,