Trait sp_runtime::offchain::TransactionPool[][src]

pub trait TransactionPool {
    pub fn submit_transaction(
        &mut self,
        extrinsic: Vec<u8, Global>
    ) -> Result<(), ()>; }

Abstraction over transaction pool.

This trait is currently used within the ExternalitiesExtension to provide offchain calls with access to the transaction pool without tight coupling with any pool implementation.

Required methods

pub fn submit_transaction(
    &mut self,
    extrinsic: Vec<u8, Global>
) -> Result<(), ()>
[src]

Submit transaction.

The transaction will end up in the pool and be propagated to others.

Loading content...

Implementors

impl TransactionPool for TestTransactionPoolExt[src]

Loading content...