Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update p2p_networking.rst #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions reference/p2p_networking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Peers which have been disconnected may have stale blocks in their locally-stored

Note: the receiving peer itself may respond with an `“inv” message <../reference/p2p_networking.html#inv>`__ containing header hashes of stale blocks. It is up to the requesting peer to poll all of its peers to find the best block chain.

If the receiving peer does not find a common header hash within the list, it will assume the last common block was the genesis block (block zero), so it will reply with in `“inv” message <../reference/p2p_networking.html#inv>`__ containing header hashes starting with block one (the first block after the genesis block).
If the receiving peer does not find a common header hash within the list, it will assume the last common block was the genesis block (block zero), so it will reply with an `“inv” message <../reference/p2p_networking.html#inv>`__ containing header hashes starting with block one (the first block after the genesis block).

+----------+---------------------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Bytes | Name | Data Type | Description |
Expand Down Expand Up @@ -315,7 +315,7 @@ If a filter has been previously set with the `“filterload” message <../refer
+----------+-------------------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| *Varies* | flag byte count | compactSize uint | The number of flag bytes in the following field. |
+----------+-------------------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| *Varies* | flags | byte[] | A sequence of bits packed eight in a byte with the least significant bit first. May be padded to the nearest byte boundary but must not contain any more bits than that. Used to assign the hashes to particular nodes in the merkle tree as described below. |
| *Varies* | flags | byte[] | A sequence of eight bits packed in a byte with the least significant bit first. May be padded to the nearest byte boundary but must not contain any more bits than that. Used to assign the hashes to particular nodes in the merkle tree as described below. |
+----------+-------------------+------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

The annotated hexdump below shows a `“merkleblock” message <../reference/p2p_networking.html#merkleblock>`__ which corresponds to the examples below. (The message header has been omitted.)
Expand Down