reth_eth_wire_types

Module blocks

Source
Expand description

Implements the GetBlockHeaders, GetBlockBodies, BlockHeaders, and BlockBodies message types.

Structsยง

  • The response to GetBlockBodies, containing the block bodies that the peer knows about if any were found.
  • The response to GetBlockHeaders, containing headers if any headers were found.
  • A request for a peer to return block bodies for the given block hashes.
  • A request for a peer to return block headers starting at the requested block. The peer must return at most limit headers. If the reverse field is true, the headers will be returned starting at start_block, traversing towards the genesis block. Otherwise, headers will be returned starting at start_block, traversing towards the latest block.