mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
chore(txpool): include tx object in assert message (#1989)
This commit is contained in:
@@ -40,7 +40,11 @@ impl<T: ParkedOrd> ParkedPool<T> {
|
||||
/// If the transaction is already included.
|
||||
pub(crate) fn add_transaction(&mut self, tx: Arc<ValidPoolTransaction<T::Transaction>>) {
|
||||
let id = *tx.id();
|
||||
assert!(!self.by_id.contains_key(&id), "transaction already included");
|
||||
assert!(
|
||||
!self.by_id.contains_key(&id),
|
||||
"transaction already included {:?}",
|
||||
self.by_id.contains_key(&id)
|
||||
);
|
||||
let submission_id = self.next_id();
|
||||
|
||||
// keep track of size
|
||||
|
||||
@@ -97,7 +97,11 @@ impl<T: TransactionOrdering> PendingPool<T> {
|
||||
///
|
||||
/// if the transaction is already included
|
||||
pub(crate) fn add_transaction(&mut self, tx: Arc<ValidPoolTransaction<T::Transaction>>) {
|
||||
assert!(!self.by_id.contains_key(tx.id()), "transaction already included");
|
||||
assert!(
|
||||
!self.by_id.contains_key(tx.id()),
|
||||
"transaction already included {:?}",
|
||||
self.by_id.contains_key(tx.id())
|
||||
);
|
||||
|
||||
let tx_id = *tx.id();
|
||||
let submission_id = self.next_id();
|
||||
|
||||
@@ -865,7 +865,7 @@ impl<T: PoolTransaction> AllTransactions<T> {
|
||||
|
||||
let pool_tx = PoolInternalTransaction {
|
||||
transaction: transaction.clone(),
|
||||
subpool: SubPool::Queued,
|
||||
subpool: state.into(),
|
||||
state,
|
||||
cumulative_cost,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user