chore: expose txpool types that enable implementing TransactionPool trait (#3225)

This commit is contained in:
Roman Krasiuk
2023-06-19 13:58:07 +03:00
committed by GitHub
parent 9484de09f5
commit 13dcfb8e6e

View File

@ -80,25 +80,7 @@
//! [`Pool`](crate::Pool) type is just an `Arc` wrapper around `PoolInner`. This is the usable type
//! that provides the `TransactionPool` interface.
pub use crate::{
config::PoolConfig,
ordering::{CostOrdering, TransactionOrdering},
pool::TransactionEvents,
traits::{
AllPoolTransactions, BestTransactions, BlockInfo, CanonicalStateUpdate, ChangedAccount,
PoolTransaction, PooledTransaction, PropagateKind, PropagatedTransactions,
TransactionOrigin, TransactionPool,
},
validate::{
EthTransactionValidator, TransactionValidationOutcome, TransactionValidator,
ValidPoolTransaction,
},
};
use crate::{
error::PoolResult,
pool::PoolInner,
traits::{NewTransactionEvent, PoolSize},
};
use crate::pool::PoolInner;
use aquamarine as _;
use reth_primitives::{Address, TxHash, U256};
use reth_provider::StateProviderFactory;
@ -106,6 +88,22 @@ use std::{collections::HashMap, sync::Arc};
use tokio::sync::mpsc::Receiver;
use tracing::{instrument, trace};
pub use crate::{
config::PoolConfig,
error::PoolResult,
ordering::{CostOrdering, TransactionOrdering},
pool::TransactionEvents,
traits::{
AllPoolTransactions, BestTransactions, BlockInfo, CanonicalStateUpdate, ChangedAccount,
NewTransactionEvent, PoolSize, PoolTransaction, PooledTransaction, PropagateKind,
PropagatedTransactions, TransactionOrigin, TransactionPool,
},
validate::{
EthTransactionValidator, TransactionValidationOutcome, TransactionValidator,
ValidPoolTransaction,
},
};
mod config;
pub mod error;
mod identifier;