Type Alias reth_transaction_pool::test_utils::MockValidTx
source · pub type MockValidTx = ValidPoolTransaction<MockTransaction>;
Available on crate feature
test-utils
only.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§
struct MockValidTx {
pub transaction: MockTransaction,
pub transaction_id: TransactionId,
pub propagate: bool,
pub timestamp: Instant,
pub origin: TransactionOrigin,
}
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.
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: 368 bytes