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 thereverse
field istrue
, the headers will be returned starting atstart_block
, traversing towards the genesis block. Otherwise, headers will be returned starting atstart_block
, traversing towards the latest block.