Trait reth_transaction_pool::EthPoolTransaction

source ·
pub trait EthPoolTransaction: PoolTransaction<Pooled = PooledTransactionsElementEcRecovered, Consensus = TransactionSignedEcRecovered> {
    // Required methods
    fn take_blob(&mut self) -> EthBlobTransactionSidecar;
    fn blob_count(&self) -> usize;
    fn validate_blob(
        &self,
        blob: &BlobTransactionSidecar,
        settings: &KzgSettings,
    ) -> Result<(), BlobTransactionValidationError>;
    fn authorization_count(&self) -> usize;
}
Expand description

An extension trait that provides additional interfaces for the EthTransactionValidator.

Required Methods§

source

fn take_blob(&mut self) -> EthBlobTransactionSidecar

Extracts the blob sidecar from the transaction.

source

fn blob_count(&self) -> usize

Returns the number of blobs this transaction has.

source

fn validate_blob( &self, blob: &BlobTransactionSidecar, settings: &KzgSettings, ) -> Result<(), BlobTransactionValidationError>

Validates the blob sidecar of the transaction with the given settings.

source

fn authorization_count(&self) -> usize

Returns the number of authorizations this transaction has.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl EthPoolTransaction for MockTransaction

Available on crate feature test-utils only.
source§

impl EthPoolTransaction for EthPooledTransaction