2.2.2.2 Response Code
Each response message contains the following Response Code.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Transportheader |
|||||||||||||||||||||||||||||||
ResponseCode |
Transportheader (4 bytes): A transport header (section 2.2.2.1).
ResponseCode (1 byte): A code that indicates the server response to the client request message.
-
Value
Meaning
OK
0x00
The server has sufficient information to retrieve content from the client.
INTERESTED
0x01
The server needs the range of block hashes from the client before it can retrieve content from the client.
In an INITIAL_OFFER_MESSAGE (section 2.2.1.3), the response code MUST be either OK or INTERESTED. In a BATCHED_OFFER_MESSAGE (section 2.2.1.5), the response code MUST be OK. In a SEGMENT_INFO_MESSAGE (section 2.2.1.4), the response code MUST be OK.