Type Alias MockValidTx

pub type MockValidTx = ValidPoolTransaction<MockTransaction>;
Expand description

A validated transaction in the transaction pool, using MockTransaction as the transaction type.

This type is an alias for ValidPoolTransaction<MockTransaction>.

Aliased Type§

pub struct MockValidTx {
    pub transaction: MockTransaction,
    pub transaction_id: TransactionId,
    pub propagate: bool,
    pub timestamp: Instant,
    pub origin: TransactionOrigin,
    pub authority_ids: Option<Vec<SenderId>>,
}

Fields§

§transaction: MockTransaction

The transaction

§transaction_id: TransactionId

The identifier for this transaction.

§propagate: bool

Whether it is allowed to propagate the transaction.

§timestamp: Instant

Timestamp when this was added to the pool.

§origin: TransactionOrigin

Where this transaction originated from.

§authority_ids: Option<Vec<SenderId>>

The sender ids of the 7702 transaction authorities.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 448 bytes