fuel_core_p2p::ports

Trait TxPool

source
pub trait TxPool:
    Send
    + Sync
    + Clone {
    // Required methods
    fn get_tx_ids(
        &self,
        max_ids: usize,
    ) -> impl Future<Output = Result<Vec<TxId>>> + Send;
    fn get_full_txs(
        &self,
        tx_ids: Vec<TxId>,
    ) -> impl Future<Output = Result<Vec<Option<NetworkableTransactionPool>>>> + Send;
}

Required Methods§

source

fn get_tx_ids( &self, max_ids: usize, ) -> impl Future<Output = Result<Vec<TxId>>> + Send

Get all tx ids in the pool

source

fn get_full_txs( &self, tx_ids: Vec<TxId>, ) -> impl Future<Output = Result<Vec<Option<NetworkableTransactionPool>>>> + Send

Get full txs from the pool

Object Safety§

This trait is not object safe.

Implementors§