Trait reth::core::primitives::transaction::TryFromRecoveredTransaction
source · pub trait TryFromRecoveredTransaction {
type Error;
// Required method
fn try_from_recovered_transaction(
tx: TransactionSignedEcRecovered,
) -> Result<Self, Self::Error>
where Self: Sized;
}
Expand description
A transaction type that can be created from a TransactionSignedEcRecovered
transaction.
This is a conversion trait that’ll ensure transactions received via P2P can be converted to the transaction type that the transaction pool uses.
Required Associated Types§
Required Methods§
sourcefn try_from_recovered_transaction(
tx: TransactionSignedEcRecovered,
) -> Result<Self, Self::Error>where
Self: Sized,
fn try_from_recovered_transaction(
tx: TransactionSignedEcRecovered,
) -> Result<Self, Self::Error>where
Self: Sized,
Converts to this type from the given TransactionSignedEcRecovered
.