fuel_core_executor::ports

Trait TransactionsSource

source
pub trait TransactionsSource {
    // Required method
    fn next(
        &self,
        gas_limit: u64,
        tx_count_limit: u16,
        block_transaction_size_limit: u32,
    ) -> Vec<MaybeCheckedTransaction>;
}

Required Methods§

source

fn next( &self, gas_limit: u64, tx_count_limit: u16, block_transaction_size_limit: u32, ) -> Vec<MaybeCheckedTransaction>

Returns the next batch of transactions to satisfy the gas_limit and block_transaction_size_limit. The returned batch has at most tx_count_limit transactions, none of which has a size in bytes greater than size_limit.

Implementors§