From 5daf33583316b3de6b4b9440d87d8dcde1e1118e Mon Sep 17 00:00:00 2001 From: thephez Date: Thu, 19 Apr 2018 13:02:23 -0400 Subject: [PATCH] content - p2p - Sendcmpct message - Add details of `sendcmpct` including hex dump --- _includes/devdoc/ref_p2p_networking.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/_includes/devdoc/ref_p2p_networking.md b/_includes/devdoc/ref_p2p_networking.md index 26834ae1..37ecc32c 100644 --- a/_includes/devdoc/ref_p2p_networking.md +++ b/_includes/devdoc/ref_p2p_networking.md @@ -1356,15 +1356,22 @@ header has been omitted.) {% autocrossref %} -The `sendcmpct` message tells the receiving peer to send new block -announcements using a `cmpctblock` message rather than an `inv` message. +The `sendcmpct` message tells the receiving peer whether or not to announce new +blocks using a `cmpctblock` message. It also sends the compact block protocol +version it supports. - +| Bytes | Name | Data Type | Description +|----------|---------------|------------------|-------------- +| 1 | announce | bool | 0 - Announce blocks via `headers` message or `inv` message
1 - Announce blocks via `cmpctblock` message +| 8 | version | uint64_t | The compact block protocol version number -**ADD FORMAT AND HEXDUMP** +The annotated hexdump below shows a `sendcmpct` message. (The message +header has been omitted.) + +{% highlight text %} +01 ................................. Block announce type: Compact Blocks +0100000000000000 ................... Compact block version: 1 +{% endhighlight %} {% endautocrossref %}