mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 00:58:11 -05:00
chore(txpool): expose underlying tx (#1651)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user