[][src]Trait sc_service::TransactionPoolMaintainer

pub trait TransactionPoolMaintainer: Send + Sync {
    type Block: Block;
    type Hash: Eq + Hash + Member + Serialize;
    fn maintain(
        &self,
        id: &BlockId<Self::Block>,
        retracted: &[Self::Hash]
    ) -> Box<dyn Future<Output = ()> + 'static + Send + Unpin>; }

Transaction pool maintainer interface.

Associated Types

type Block: Block

Block type.

type Hash: Eq + Hash + Member + Serialize

Transaction Hash type.

Loading content...

Required methods

fn maintain(
    &self,
    id: &BlockId<Self::Block>,
    retracted: &[Self::Hash]
) -> Box<dyn Future<Output = ()> + 'static + Send + Unpin>

Returns a future that performs maintenance procedures on the pool when with given hash is imported.

Loading content...

Implementations on Foreign Types

impl<Pool, Maintainer> TransactionPoolMaintainer for MaintainableTransactionPool<Pool, Maintainer> where
    Maintainer: TransactionPoolMaintainer,
    Pool: Send + Sync
[src]

type Block = <Maintainer as TransactionPoolMaintainer>::Block

type Hash = <Maintainer as TransactionPoolMaintainer>::Hash

impl<Block, Client, PoolApi> TransactionPoolMaintainer for FullBasicPoolMaintainer<Client, PoolApi> where
    Block: Block,
    Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBody<Block> + 'static,
    PoolApi: ChainApi<Block = Block, Hash = <Block as Block>::Hash> + 'static,
    <Client as ProvideRuntimeApi<Block>>::Api: TaggedTransactionQueue<Block>, 
[src]

type Block = Block

type Hash = <Block as Block>::Hash

impl<Block, Client, PoolApi, F> TransactionPoolMaintainer for LightBasicPoolMaintainer<Block, Client, PoolApi, F> where
    Block: Block,
    Client: ProvideRuntimeApi<Block> + HeaderBackend<Block> + BlockBody<Block> + 'static,
    F: Fetcher<Block> + 'static,
    PoolApi: ChainApi<Block = Block, Hash = <Block as Block>::Hash> + 'static,
    <Client as ProvideRuntimeApi<Block>>::Api: TaggedTransactionQueue<Block>, 
[src]

type Block = Block

type Hash = <Block as Block>::Hash

Loading content...

Implementors

Loading content...