fuel_core_interfaces/poa_coordinator.rs
1use crate::{
2 common::fuel_tx::TxId,
3 model::ArcPoolTx,
4};
5use anyhow::Result;
6
7#[async_trait::async_trait]
8pub trait TransactionPool {
9 /// Returns the number of pending transactions in the `TxPool`.
10 async fn pending_number(&self) -> Result<usize>;
11
12 async fn total_consumable_gas(&self) -> Result<u64>;
13
14 async fn remove_txs(&mut self, tx_ids: Vec<TxId>) -> Result<Vec<ArcPoolTx>>;
15}