block

The block message transmits a single serialized block.

Name

Data Type

Bytes

Description

block header

BlockHeader

140

Block header

transactions

vector<Transaction>

Varies

Block transactions

The “block” message can be sent for two different reasons:

  1. GetData Response: Nodes will always send it in response to a “getdata” message that requests the block with an inventory type of “MSG_BLOCK” (provided the node has that block available for relay).

  2. Unsolicited: Some proposers will send unsolicited “block” messages broadcasting their newly-mined blocks to all of their peers.