chore(txpool): expose underlying tx (#1651)

This commit is contained in:
Roman Krasiuk
2023-03-06 21:55:41 +02:00
committed by GitHub
parent 75e677cfde
commit 3503444342

View File

@@ -313,6 +313,13 @@ pub struct PooledTransaction {
pub(crate) effective_gas_price: u128,
}
impl PooledTransaction {
/// Return the reference to the underlying transaction.
pub fn transaction(&self) -> &TransactionSignedEcRecovered {
&self.transaction
}
}
impl PoolTransaction for PooledTransaction {
/// Returns hash of the transaction.
fn hash(&self) -> &TxHash {