Available on crate feature
network only.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 withNewPooledTransactionHashes. - policy
- Defines the traits for transaction-related policies.
Structs§
- Peer
Metadata - Tracks a single peer in the context of
TransactionsManager. - Pending
Pool Imports Info - Tracks stats about the
TransactionsManager. - Transaction
Fetcher Config - Configuration for fetching transactions.
- Transactions
Handle - Api to interact with
TransactionsManagertask. - Transactions
Manager - Manages transactions on top of the p2p network.
- Transactions
Manager Config - Configuration for managing transactions within the network.
Enums§
- Network
Transaction Event - All events related to transactions emitted by the network.
- Transaction
Ingress Policy - Determines which peers we will accept incoming transactions or announcements from.
- Transaction
Propagation Mode - 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
PooledTransactionsresponse when packing aGetPooledTransactionsrequest. This is much smaller than the 2 MiBSOFT_LIMIT_BYTE_SIZE_POOLED_TRANSACTIONS_RESPONSEapplied 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
PooledTransactionsresponse on assembling aGetPooledTransactionsrequest.
Traits§
- Announcement
Filtering Policy - A policy that defines how to handle incoming transaction announcements, particularly concerning transaction types and other announcement metadata.
- Transaction
Propagation Policy - A policy defining which peers pending transactions are gossiped to.
Type Aliases§
- Pool
Import Future - The future for importing transactions into the pool.