pub trait TransactionPool<H: ExHashT, B: BlockT>: Send + Sync {
    fn transactions(&self) -> Vec<(H, B::Extrinsic)>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn hash_of(&self, transaction: &B::Extrinsic) -> H;
fn import(&self, transaction: B::Extrinsic) -> TransactionImportFuture;
fn on_broadcasted(&self, propagations: HashMap<H, Vec<String>>);
fn transaction(&self, hash: &H) -> Option<B::Extrinsic>; }
Expand description

Transaction pool interface

Required methods

Get transactions from the pool that are ready to be propagated.

Get hash of transaction.

Import a transaction into the pool.

This will return future.

Notify the pool about transactions broadcast.

Get transaction by hash.

Implementors