Module broadcast

Available on crate feature network only.
Expand description

Types for broadcasting new data.

Structs§

BlockHashNumber
A block hash and a block number.
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.
PartiallyValidData
Data that has passed an initial validation pass that is not specific to any mempool message type.
RequestTxHashes
Hashes to request from a peer.
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.
ValidAnnouncementData
Partially validated data from an announcement or a PooledTransactions response.

Enums§

NewPooledTransactionHashes
A wrapper type for all different new pooled transaction types

Traits§

DedupPayload
Validation pass that checks for unique transaction hashes.
HandleMempoolData
Interface for handling mempool message data. Used in various filters in pipelines in TransactionsManager and in queries to TransactionPool.
HandleVersionedMempoolData
Extension of HandleMempoolData interface, for mempool messages that are versioned.

Type Aliases§

Eth68TxMetadata
Value in PartiallyValidData map obtained from an announcement.