Trait fuel_core_poa::ports::TransactionPool

source ·
pub trait TransactionPool: Send + Sync {
    // Required methods
    fn pending_number(&self) -> usize;
    fn total_consumable_gas(&self) -> u64;
    fn remove_txs(&self, tx_ids: Vec<(TxId, ExecutorError)>) -> Vec<ArcPoolTx>;
    fn transaction_status_events(&self) -> BoxStream<TxId>;
}

Required Methods§

source

fn pending_number(&self) -> usize

Returns the number of pending transactions in the TxPool.

source

fn total_consumable_gas(&self) -> u64

source

fn remove_txs(&self, tx_ids: Vec<(TxId, ExecutorError)>) -> Vec<ArcPoolTx>

source

fn transaction_status_events(&self) -> BoxStream<TxId>

Implementors§