Crate sc_transaction_pool_api

Source
Expand description

Transaction pool client facing API.

Modules§

error
Transaction pool errors.

Structs§

OffchainTransactionPoolFactory
Factory for creating TransactionPoolExts.
PoolStatus
Transaction pool status.
RejectAllTxPool
Transaction pool that rejects all submitted transactions.

Enums§

ChainEvent
Events that the transaction pool listens for.
TransactionSource
The source of the transaction.
TransactionStatus
Possible transaction status events.

Traits§

InPoolTransaction
In-pool transaction interface.
LocalTransactionPool
Transaction pool interface for submitting local transactions that exposes a blocking interface for submission.
MaintainedTransactionPool
Trait for transaction pool maintenance.
ReadyTransactions
An iterator of ready transactions.
TransactionPool
Transaction pool interface.

Type Aliases§

BlockHash
Block hash type for a pool.
ImportNotificationStream
The import notification event stream.
LocalTransactionFor
Transaction type for a local pool.
PoolFuture
Typical future type used in transaction pool api.
TransactionFor
Transaction type for a pool.
TransactionLongevity
Minimum number of blocks a transaction will remain valid for. TransactionLongevity::max_value() means “forever”.
TransactionPriority
Priority for a transaction. Additive. Higher is better.
TransactionStatusStream
The stream of transaction events.
TransactionStatusStreamFor
Type of transactions event stream for a pool.
TransactionTag
Tag for a transaction. No two transactions with the same tag should be placed on-chain.
TxHash
Transaction hash type for a pool.
TxIndex
Transaction’s index within the block in which it was included.