Module blocks
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
limitheaders. If thereversefield 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.