mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(txpool): require public traits to be static (#74)
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user