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§

type Error

The error type returned by the transaction.

Required Methods§

fn try_from_recovered_transaction( tx: TransactionSignedEcRecovered, ) -> Result<Self, Self::Error>
where Self: Sized,

Converts to this type from the given TransactionSignedEcRecovered.

Implementors§