feat: add futures api to TransactionPool (#1348)

* feat: add futures api to `TransactionPool`

* fix clippy
This commit is contained in:
yjh
2023-09-04 03:52:20 +08:00
committed by GitHub
parent bc6fca3c44
commit 4053bdac03
5 changed files with 15 additions and 3 deletions
@@ -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;