Expand description
Re-exported from reth_transaction_pool
.
Modules§
- blobstore
- Storage for blob data of EIP4844 transactions.
- error
- Transaction pool errors
- identifier
- Identifier types for transactions and senders.
- maintain
- Support for maintaining the state of the transaction pool
- metrics
- Transaction pool metrics.
- noop
- A transaction pool implementation that does nothing.
- pool
- Transaction Pool internals.
- test_
utils - Common test helpers for mocking a pool Internal helpers for testing.
- validate
- Transaction validation abstractions.
Structs§
- AllPool
Transactions - A Helper type that bundles all transactions in the pool.
- AllTransactions
Events - A Stream that receives
FullTransactionEvent
for all transaction. - Best
Transactions Attributes - A Helper type that bundles the best transactions attributes together.
- Block
Info - Represents the current status of the pool.
- Canonical
State Update - Represents changes after a new canonical block or range of canonical blocks was added to the chain.
- Coinbase
TipOrdering - Default ordering for the pool.
- EthPooled
Transaction - The default
PoolTransaction
for the Pool for Ethereum. - EthTransaction
Validator - Validator for Ethereum transactions.
It is a
TransactionValidator
implementation that validates ethereum transaction. - Local
Transaction Config - Configuration options for the locally received transactions:
TransactionOrigin::Local
- NewBlob
Sidecar - This type represents a new blob sidecar that has been stored in the transaction pool’s
blobstore; it includes the
TransactionHash
of the blob transaction along with the assoc. sidecar (blobs, commitments, proofs) - NewSubpool
Transaction Stream - A Stream that yields full transactions the subpool
- NewTransaction
Event - Represents a new transaction
- Noop
Transaction Filter - A no-op implementation of
TransactionFilter
which marks all transactions as valid. - Pool
- A shareable, generic, customizable
TransactionPool
implementation. - Pool
Config - Configuration options for the Transaction pool.
- Pool
Size - Represents the current status of the pool.
- Price
Bump Config - Price bump config (in %) for the transaction pool underpriced check.
- Propagated
Transactions - Represents transactions that were propagated over the network.
- SubPool
Limit - Size limits for a sub-pool.
- Transaction
Events - A Stream that receives
TransactionEvent
only for the transaction with the given hash. - Transaction
Validation Task Executor - A
TransactionValidator
implementation that validates ethereum transaction. This validator is non-blocking, all validation work is done in a separate task. - Valid
Pool Transaction - A valid transaction in the pool.
Enums§
- Blob
Store Error - Error variants that can occur when interacting with a blob store.
- EthBlob
Transaction Sidecar - Represents the blob sidecar of the
EthPooledTransaction
. - Full
Transaction Event - An event that happened to a transaction and contains its full body where possible.
- GetPooled
Transaction Limit - The limit to enforce for
TransactionPool::get_pooled_transaction_elements
. - Pool
Update Kind - Represents the kind of update to the canonical state.
- Priority
- Priority of the transaction that can be missing.
- Propagate
Kind - Represents how a transaction was propagated over the network.
- SubPool
- Identifier for the transaction Sub-pool
- Transaction
Event - Various events that describe status changes of a transaction.
- Transaction
Listener Kind - Determines what kind of new transactions should be emitted by a stream of transactions.
- Transaction
Origin - Where the transaction originates from.
- Transaction
Validation Outcome - A Result type returned after checking a transaction’s validity.
Constants§
- DEFAULT_
PRICE_ BUMP - Default price bump (in %) for the transaction pool underpriced check.
- DEFAULT_
TXPOOL_ ADDITIONAL_ VALIDATION_ TASKS - The default additional validation tasks size.
- MAX_
NEW_ PENDING_ TXS_ NOTIFICATIONS - Default maximum new transactions for broadcasting.
- REPLACE_
BLOB_ PRICE_ BUMP - Replace blob price bump (in %) for the transaction pool underpriced check.
- TXPOOL_
MAX_ ACCOUNT_ SLOTS_ PER_ SENDER - Guarantees max transactions for one sender, compatible with geth/erigon
- TXPOOL_
SUBPOOL_ MAX_ SIZE_ MB_ DEFAULT - The default maximum allowed size of the given subpool.
- TXPOOL_
SUBPOOL_ MAX_ TXS_ DEFAULT - The default maximum allowed number of transactions in the given subpool.
Traits§
- Best
Transactions - An
Iterator
that only returns transactions that are ready to be executed. - Blob
Store - A blob store that can be used to store blob data of EIP4844 transactions.
- EthPool
Transaction - Super trait for transactions that can be converted to and from Eth transactions intended for the ethereum style pool.
- Pool
Transaction - Trait for transaction types used inside the pool.
- Transaction
Filter - A filter that allows to check if a transaction satisfies a set of conditions
- Transaction
Ordering - Transaction ordering trait to determine the order of transactions.
- Transaction
Pool - General purpose abstraction of a transaction-pool.
- Transaction
Pool Ext - Extension for TransactionPool trait that allows to set the current block info.
- Transaction
Validator - Provides support for validating transaction at any given state of the chain
Functions§
- blob_
tx_ priority - Returns the priority for the transaction, based on the “delta” blob fee and priority fee.
- fee_
delta - The blob step function, attempting to compute the delta given the
max_tx_fee
, andcurrent_fee
.
Type Aliases§
- Best
Transactions For - Alias to restrict the
BestTransactions
items to the pool’s transaction type. - EthTransaction
Pool - Type alias for default ethereum transaction pool
- PeerId
- The
PeerId
type. - Pool
Consensus Tx - Helper type alias to access
PoolTransaction::Consensus
for a givenTransactionPool
. - Pool
Pooled Tx - Helper type alias to access
PoolTransaction::Pooled
for a givenTransactionPool
. - Pool
Result - Transaction pool result type.
- PoolTx
- Helper type alias to access
PoolTransaction
for a givenTransactionPool
.