feat: add futures api to TransactionPool (#1348)

* feat: add futures api to `TransactionPool`

* fix clippy
This commit is contained in:
yjh authored and GitHub committed 2023-09-03 21:52:20 +02:00
1 parent bc6fca3c44
commit 4053bdac03
5 files changed
+15 -3

No files matched your search

@@ -247,6 +247,9 @@ pub trait TransactionPool: Send + Sync {
fn remove_invalid(&self, hashes: &[TxHash<Self>]) -> Vec<Arc<Self::InPoolTransaction>>;
// *** logging
/// Get futures transaction list.
fn futures(&self) -> Vec<Self::InPoolTransaction>;
/// Returns pool status.
fn status(&self) -> PoolStatus;