Skip to main content

Module broadcast

Module broadcast 

Source
Expand description

Types for broadcasting new data.

Structs§

BlockHashNumber
A block hash and a block number.
BlockRangeUpdate
The earliest block, the latest block and hash of the latest block which can be provided. See BlockRangeUpdate.
BroadcastPoolTransactions
Outbound-only full transaction propagation message backed by pool transactions.
LazyEncoded
Shared cached encoding for an outbound transaction.
NewBlock
A new block with the current total difficulty, which includes the difficulty of the returned block.
NewBlockHashes
This informs peers of new blocks that have appeared on the network.
NewPooledTransactionHashes66
This informs peers of transaction hashes for transactions that have appeared on the network, but have not been included in a block.
NewPooledTransactionHashes68
Same as NewPooledTransactionHashes66 but extends that beside the transaction hashes, the node sends the transaction types and their sizes (as defined in EIP-2718) as well.
NewPooledTransactionHashes72
Same as NewPooledTransactionHashes68 but adds the eth/72 cell_mask field from EIP-8070.
SharedTransactions
Same as Transactions but this is intended as egress message send from local to many peers.
Transactions
This informs peers of transactions that have appeared on the network and are not yet included in a block.

Enums§

NewPooledTransactionHashes
A wrapper type for all different new pooled transaction types

Constants§

SOFT_LIMIT_COUNT_HASHES_IN_NEW_POOLED_TRANSACTIONS_BROADCAST_MESSAGE
Soft limit for the number of hashes in a NewPooledTransactionHashes broadcast message.

Traits§

BroadcastPoolTransaction
A transaction that can be lazily encoded for pool-backed outbound propagation.
HandleMempoolData
Interface for handling mempool message data. Used in various filters in pipelines in TransactionsManager and in queries to TransactionPool.
NewBlockPayload
A trait for block payloads transmitted through p2p.

Functions§

decode_list_with_memory_budget
Decodes an RLP list, stopping once the cumulative [InMemorySize] of decoded items exceeds memory_budget bytes. Any remaining items in the payload are skipped.

Type Aliases§

LazyEncodedTransaction
A lazily encoded transaction used for pool-backed full transaction propagation.