referrerpolicy=no-referrer-when-downgrade

ClientForTransactionPool

Trait ClientForTransactionPool 

Source
pub trait ClientForTransactionPool<Block: BlockT>:
    ProvideRuntimeApi<Block, Api: TaggedTransactionQueue<Block>>
    + BlockBackend<Block>
    + HeaderBackend<Block>
    + BlockIdTo<Block>
    + HeaderMetadata<Block, Error = Error>
    + 'static { }
Expand description

The client capabilities the transaction pool of a full node relies on.

It is blanket implemented, so every client able to validate transactions against the runtime qualifies. Only the code that actually builds a pool needs it: the Builder and the crate::FullChainApi it wires up. Holding a TransactionPoolHandle requires no client bound at all, since the handle is parameterized by the block type alone.

Implementors§

Source§

impl<Block: BlockT, T> ClientForTransactionPool<Block> for T
where T: ProvideRuntimeApi<Block, Api: TaggedTransactionQueue<Block>> + BlockBackend<Block> + HeaderBackend<Block> + BlockIdTo<Block> + HeaderMetadata<Block, Error = Error> + 'static,