feat: initialize txpool maintenance (#2429)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
Matthias Seitz
2023-04-27 15:53:55 +02:00
committed by GitHub
parent 4e1ae0ee95
commit 9b5a84acc8
5 changed files with 35 additions and 6 deletions

View File

@ -22,10 +22,10 @@ pub async fn maintain_transaction_pool<Client, V, T, St>(
pool: Pool<V, T>,
mut events: St,
) where
Client: StateProviderFactory + BlockProvider + 'static,
Client: StateProviderFactory + BlockProvider,
V: TransactionValidator,
T: TransactionOrdering<Transaction = <V as TransactionValidator>::Transaction>,
St: Stream<Item = CanonStateNotification> + Unpin + 'static,
St: Stream<Item = CanonStateNotification> + Unpin,
{
// TODO set current head for the pool