Expand description
Implements the GetBlockHeaders
, GetBlockBodies
, BlockHeaders
, and BlockBodies
message
types.
Structs§
- Block
Bodies - The response to
GetBlockBodies
, containing the block bodies that the peer knows about if any were found. - Block
Headers - The response to
GetBlockHeaders
, containing headers if any headers were found. - GetBlock
Bodies - A request for a peer to return block bodies for the given block hashes.
- GetBlock
Headers - 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.