Skip to main content

Module transactions

Module transactions 

Source
Expand description

Transactions management for the p2p network.

Modules§

announcement
Normalized transaction announcements. Ordered transaction announcements used by the transaction manager and fetcher.
config
Aggregation on configurable parameters for TransactionsManager.
constants
Default and spec’d bounds.
fetcher
Component responsible for fetching transactions from NewPooledTransactionHashes. Fetches transactions that peers announced with NewPooledTransactionHashes.
policy
Defines the traits for transaction-related policies.

Structs§

PeerMetadata
Tracks a single peer in the context of TransactionsManager.
PendingPoolImportsInfo
Tracks stats about the TransactionsManager.
TransactionFetcherConfig
Configuration for fetching transactions.
TransactionsHandle
Api to interact with TransactionsManager task.
TransactionsManager
Manages transactions on top of the p2p network.
TransactionsManagerConfig
Configuration for managing transactions within the network.

Enums§

NetworkTransactionEvent
All events related to transactions emitted by the network.
TransactionIngressPolicy
Determines which peers we will accept incoming transactions or announcements from.
TransactionPropagationMode
Determines how new pending transactions are propagated to other peers in full.

Constants§

DEFAULT_SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESP_ON_PACK_GET_POOLED_TRANSACTIONS_REQ
Default soft limit for the byte size of the expected PooledTransactions response when packing a GetPooledTransactions request. This is much smaller than the 2 MiB SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE applied when assembling a response, so that a single request fetches at most about one blob transaction and doesn’t hog the connection to a peer.
SOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSE
Soft limit for the byte size of a PooledTransactions response on assembling a GetPooledTransactions request.

Traits§

AnnouncementFilteringPolicy
A policy that defines how to handle incoming transaction announcements, particularly concerning transaction types and other announcement metadata.
TransactionPropagationPolicy
A policy defining which peers pending transactions are gossiped to.

Type Aliases§

PoolImportFuture
The future for importing transactions into the pool.