chore(txpool): expose PooledTransaction (#1649)

This commit is contained in:
Roman Krasiuk
2023-03-06 19:22:12 +02:00
committed by GitHub
parent 1e007d6911
commit 75e677cfde
2 changed files with 3 additions and 3 deletions

View File

@@ -83,8 +83,8 @@ pub use crate::{
config::PoolConfig,
ordering::TransactionOrdering,
traits::{
BestTransactions, OnNewBlockEvent, PoolTransaction, PropagateKind, PropagatedTransactions,
TransactionOrigin, TransactionPool,
BestTransactions, OnNewBlockEvent, PoolTransaction, PooledTransaction, PropagateKind,
PropagatedTransactions, TransactionOrigin, TransactionPool,
},
validate::{TransactionValidationOutcome, TransactionValidator, ValidPoolTransaction},
};

View File

@@ -302,7 +302,7 @@ pub trait PoolTransaction: fmt::Debug + Send + Sync + FromRecoveredTransaction {
/// This type is essentially a wrapper around [TransactionSignedEcRecovered] with additional fields
/// derived from the transaction that are frequently used by the pools for ordering.
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub(crate) struct PooledTransaction {
pub struct PooledTransaction {
/// EcRecovered transaction info
pub(crate) transaction: TransactionSignedEcRecovered,