Minor examples updates

This commit is contained in:
thephez 2017-12-13 15:51:46 -05:00
parent e2149c179f
commit c641d42118
2 changed files with 5 additions and 5 deletions

View file

@ -328,7 +328,7 @@ script, but we will sleep a short bit and send back our own `verack`
message as if we had accepted their `version` message. message as if we had accepted their `version` message.
{% highlight python %} {% highlight python %}
send("filterload", send("filterload",
"02" # ........ Filter bytes: 2 "02" # ........ Filter bytes: 2
+ "b50f" # ....... Filter: 1010 1101 1111 0000 + "b50f" # ....... Filter: 1010 1101 1111 0000
+ "0b000000" # ... nHashFuncs: 11 + "0b000000" # ... nHashFuncs: 11
@ -437,7 +437,7 @@ a non-TXID node with a 0 flag (or we finish filling out the tree).
Finally, on the fifth flag in the example (a 1), we reach a TXID node. Finally, on the fifth flag in the example (a 1), we reach a TXID node.
The 1 flag indicates this TXID's transaction matches our filter and The 1 flag indicates this TXID's transaction matches our filter and
that we should take the next (second) hash and use it as this node's that we should take the next (second) hash and use it as this node's
TXID. TXID.
![Parsing A MerkleBlock](/img/dev/gifs/en-merkleblock-parsing/en-merkleblock-parsing-007.svg) ![Parsing A MerkleBlock](/img/dev/gifs/en-merkleblock-parsing/en-merkleblock-parsing-007.svg)
@ -462,7 +462,7 @@ more child nodes to process.
We hash as appropriate to fill out the tree. Note that the eighth flag is We hash as appropriate to fill out the tree. Note that the eighth flag is
not used---this is acceptable as it was required to pad out a flag byte. not used---this is acceptable as it was required to pad out a flag byte.
The final steps would be to ensure the computed computed merkle root The final steps would be to ensure the computed merkle root
is identical to the merkle root in the header and check the other steps is identical to the merkle root in the header and check the other steps
of the parsing checklist in the `merkleblock` message section. of the parsing checklist in the `merkleblock` message section.

View file

@ -44,12 +44,12 @@ end_of_page: |
{% include devdoc/example_transactions.md %} {% include devdoc/example_transactions.md %}
{% include devdoc/example_p2p_networking.md %}
<!-- Services like Blockcyper are more likely to be used by most than building a ground-up payment system <!-- Services like Blockcyper are more likely to be used by most than building a ground-up payment system
{% include devdoc/example_payment_processing.md %} {% include devdoc/example_payment_processing.md %}
--> -->
{% include devdoc/example_p2p_networking.md %}
{% include references.md %} {% include references.md %}
{{site.glossary_links}} {{site.glossary_links}}