pub trait PoolBuilder<Node, Evm>: Sendwhere
Node: FullNodeTypes,{
type Pool: TransactionPool + Unpin + 'static
where <Self::Pool as TransactionPool>::Transaction: PoolTransaction<Consensus = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::SignedTx>;
// Required method
fn build_pool(
self,
ctx: &BuilderContext<Node>,
evm_config: Evm,
) -> impl Future<Output = Result<Self::Pool, Report>> + Send;
}Expand description
A type that knows how to build the transaction pool.
Required Associated Types§
Sourcetype Pool: TransactionPool + Unpin + 'static
where
<Self::Pool as TransactionPool>::Transaction: PoolTransaction<Consensus = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::SignedTx>
type Pool: TransactionPool + Unpin + 'static where <Self::Pool as TransactionPool>::Transaction: PoolTransaction<Consensus = <<<Node as FullNodeTypes>::Types as NodeTypes>::Primitives as NodePrimitives>::SignedTx>
The transaction pool to build.
Required Methods§
Sourcefn build_pool(
self,
ctx: &BuilderContext<Node>,
evm_config: Evm,
) -> impl Future<Output = Result<Self::Pool, Report>> + Send
fn build_pool( self, ctx: &BuilderContext<Node>, evm_config: Evm, ) -> impl Future<Output = Result<Self::Pool, Report>> + Send
Creates the transaction pool.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".