mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
tx-pool: impl From<SubPool> for Destination (#12689)
This commit is contained in:
@ -1328,7 +1328,7 @@ impl<T: PoolTransaction> AllTransactions<T> {
|
||||
id: *tx.transaction.id(),
|
||||
hash: *tx.transaction.hash(),
|
||||
current: current_pool,
|
||||
destination: Destination::Pool(tx.subpool),
|
||||
destination: tx.subpool.into(),
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -1738,7 +1738,7 @@ impl<T: PoolTransaction> AllTransactions<T> {
|
||||
id: *id,
|
||||
hash: *tx.transaction.hash(),
|
||||
current: current_pool,
|
||||
destination: Destination::Pool(tx.subpool),
|
||||
destination: tx.subpool.into(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,3 +26,9 @@ pub(crate) enum Destination {
|
||||
/// Move transaction to pool
|
||||
Pool(SubPool),
|
||||
}
|
||||
|
||||
impl From<SubPool> for Destination {
|
||||
fn from(sub_pool: SubPool) -> Self {
|
||||
Self::Pool(sub_pool)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user