From 207c9824e490864f61beb08952ef398e90dd0f27 Mon Sep 17 00:00:00 2001 From: thephez Date: Fri, 29 Jun 2018 16:07:42 -0400 Subject: [PATCH] [Content] Hexdump updates for 12.3 (#77) * Content - P2P - mnget message update - Related to #41 * Content - P2P - mnp hexdump updated with new fields - Related to #58 * Content - P2P - add hexdump for getblocktxn message * Content - P2P - add hexdump for blocktxn message * Content - P2P - update cmpctblock hexdump to include shortid --- _includes/devdoc/ref_p2p_networking.md | 100 +++++++++++++++++++------ 1 file changed, 76 insertions(+), 24 deletions(-) diff --git a/_includes/devdoc/ref_p2p_networking.md b/_includes/devdoc/ref_p2p_networking.md index 6043e675..2b71f694 100644 --- a/_includes/devdoc/ref_p2p_networking.md +++ b/_includes/devdoc/ref_p2p_networking.md @@ -232,14 +232,55 @@ The structure of `BlockTransactions` is defined below. | 1 or 3 | transactions
_length | CompactSize | As used to encode array lengths elsewhere | The number of transactions provided | *Varies* | transactions | List of transactions | As encoded in `tx` messages in response to `getdata MSG_TX` | The transactions provided - {% endautocrossref %} @@ -319,8 +360,8 @@ e9600194d85a64a50d1cc02b0181 ................ Block Header 3151b67e5b418b9d ............................ Nonce -00 .......................................... Short IDs Length: 0 -............................................. Short IDs: None +01 .......................................... Short IDs Length: 1 +483edcd3c799 ................................ Short IDs 01 .......................................... Prefilled Transaction Length: 1 @@ -442,14 +483,16 @@ The structure of `BlockTransactionsRequest` is defined below. | *Varies* | indexes_length | CompactSize uint | As used to encode array lengths elsewhere | The number of transactions requested | *Varies* | indexes | CompactSize uint[] | Differentially encoded | Vector of compactSize containing the indexes of the transactions being requested in the block. - {% endautocrossref %} @@ -2584,6 +2627,16 @@ The `mnget` message requests masternode payment sync. The response to an `mnget` message is `mnw` message inventories. Masternodes ignore this request if they are not fully synced. +{% highlight text %} +Note: Dash Core limits how frequently a masternode payment sync can be +requested. Frequent requests will result in the node being banned. +{% endhighlight %} + +There is no payload in a `mnget` message. See the [message header +section][section message header] for an example of a message without a payload. + +![Warning icon](/img/icons/icon_warning.svg) **The following information is provided for historical reference only.** + In protocol versions <=70208, the `mnget` message has a payload consisting of an integer value requesting a specific number of payment votes. In protocol versions >70208, the `mnget` message has no payload. @@ -2592,11 +2645,6 @@ integer value requesting a specific number of payment votes. In protocol version | ---------- | ----------- | --------- | -------- | -------- | | 4 | nMnCount | int | Deprecated | _Deprecated in Dash Core 0.12.3_

Number of masternode payment votes to request -{% highlight text %} -Note: Dash Core limits how frequently a masternode payment sync can be -requested. Frequent requests will result in the node being banned. -{% endhighlight %} - The following annotated hexdump shows a pre-0.12.3 `mnget` message. (The message header has been omitted.) @@ -2630,22 +2678,26 @@ message header has been omitted.) {% highlight text %} Masternode Unspent Outpoint -| 0bfa3616099771bb5f36181ff4060a9b -| 9afe7b3e47d7f4327800f0f8ce586c6e ......... Outpoint TXID -| 01000000 ................................. Outpoint index number: 1 +| ce12d7f32945c9544c5aeb0dcf131174 +| a6269b64b40f9461595e26689b573c58 ......... Outpoint TXID +| 00000000 ................................. Outpoint index number: 0 -a26a68ebb733192c1c40f9b42f872ac0 -e23d4c360e20d5ab6608000000000000 ........... Chaintip block hash +6c7da9d9eae78644a3406eac8ed0be3b +f15eb4bc369acc95b106f37400000000 ........... Chaintip block hash -1bbfa95900000000 ........................... Sig. Timestamp: 2017-10-01 20:12:11 UTC +3c84025a00000000 ........................... Sig. Timestamp: 2017-11-08 04:12:44 UTC Masternode Signature | 41 ....................................... Bytes in signature: 65 -| 1c2b205bd6ba472d7a9495f049ef66dc -| f844154846e25f2389385ba2d3e95cde -| cf3ccf82bc26d94c6fdafcd7b965bb61 -| db02d05483595196ea4d92b2e797612b -| 79 ....................................... Masternode Signature +| 1c7572842058a2075b8a996c3905e306 +| 27a581a0b0702842ac4088e6c1a61b22 +| 8e79a4d8aed0f413150f976045f256ef +| 2727e68a36622efcabfd60a554533b8c +| 6f ....................................... Masternode Signature + +01 ......................................... Sentinel Current: true +02000100 ................................... Sentinel Version (1.0.2) +ecd50100 ................................... Dashd Deamon Version (12.3.0) {% endhighlight %} {% endautocrossref %}