referrerpolicy=no-referrer-when-downgrade

Trait sp_core::offchain::TransactionPool

source ·
pub trait TransactionPool {
    // Required method
    fn submit_transaction(&mut self, extrinsic: Vec<u8>) -> Result<(), ()>;
}
Expand description

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§

source

fn submit_transaction(&mut self, extrinsic: Vec<u8>) -> Result<(), ()>

Submit transaction.

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

Implementors§