chore(txpool): require public traits to be static (#74)

This commit is contained in:
Matthias Seitz
2022-10-14 16:05:46 +02:00
committed by GitHub
parent 4790256507
commit 19d001fbdd
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ use std::{fmt, sync::Arc};
/// unverified transactions. And by block production that needs to get transactions to execute in a
/// new block.
#[async_trait::async_trait]
pub trait TransactionPool: Send + Sync {
pub trait TransactionPool: Send + Sync + 'static {
/// The transaction type of the pool
type Transaction: PoolTransaction;

View File

@ -25,7 +25,7 @@ pub enum TransactionValidationOutcome<T: PoolTransaction> {
/// Provides support for validating transaction at any given state of the chain
#[async_trait::async_trait]
pub trait TransactionValidator: Send + Sync {
pub trait TransactionValidator: Send + Sync + 'static {
/// The transaction type to validate.
type Transaction: PoolTransaction;