From 207746c4b5d4ff1b05f9b8fb1a80393fb1fad882 Mon Sep 17 00:00:00 2001 From: thephez Date: Mon, 12 Feb 2018 14:35:31 -0500 Subject: [PATCH] content - Masternode count RPC update - RPC result / output examples and summary table - Closes #22 --- .../devdoc/dash-core/rpcs/rpcs/masternode.md | 73 +++++++++++++++++-- _includes/layout/base/rpc-table.html | 2 +- 2 files changed, 68 insertions(+), 7 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md b/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md index 4c380e0b..071813bf 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md @@ -30,7 +30,7 @@ The `masternode count` RPC prints the number of all known masternode - n: "Mode" t: "string (hex)" p: "Optional
(exactly 1)" - d: "Which masternodes to count:
`ps` - PrivateSend capable,
`enabled` - Enabled,
`all` - All,
`qualify` - Eligible for payment" + d: "Which masternodes to count:
`total` - Pre-0.12.3 default result,
`ps` - PrivateSend capable,
`enabled` - Enabled,
`all` - All,
`qualify` - Eligible for payment" {% enditemplate %} @@ -38,13 +38,33 @@ The `masternode count` RPC prints the number of all known masternode {% itemplate ntpd1 %} - n: "`result`" - t: "string (hex)" + t: "object" p: "Required
(exactly 1)" - d: "Transaction ID for the collateral transaction" + d: "Masternode count by mode" + +- n: "→
`total`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of all masternodes" + +- n: "→
`ps_compatible`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of PrivateSend compatible masternodes" + +- n: "→
`enabled`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of enabled masternodes" + +- n: "→
`qualify`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of masternodes qualified to receive payment" {% enditemplate %} -*Example from Dash Core 0.12.2* +*Example from Dash Core 0.12.3* {% highlight bash %} dash-cli -testnet masternode count @@ -52,10 +72,28 @@ dash-cli -testnet masternode count Result: {% highlight bash %} -120 +{ + "total": 142, + "ps_compatible": 13, + "enabled": 13, + "qualify": 6 +} {% endhighlight %} -Get summarized count of all masternodes + +**Get summarized count of all masternodes** + +*Result---summary of known masternodes* + +{% itemplate ntpd1 %} +- n: "`result`" + t: "string" + p: "Required
(exactly 1)" + d: "Summary of masternodes in each state" + +{% enditemplate %} + +*Example from Dash Core 0.12.3* {% highlight bash %} dash-cli -testnet masternode count all @@ -66,6 +104,29 @@ Result: Total: 129 (PS Compatible: 97 / Enabled: 97 / Qualify: 90) {% endhighlight %} +**Get total count of all masternodes (default output of `masternode count` pre-0.12.3)** + +*Result---number of known masternodes in mode* + +{% itemplate ntpd1 %} +- n: "`result`" + t: "int" + p: "Required
(exactly 1)" + d: "Number of masternodes" + +{% enditemplate %} + +*Example from Dash Core 0.12.3* + +{% highlight bash %} +dash-cli -testnet masternode count total +{% endhighlight %} + +Result: +{% highlight bash %} +142 +{% endhighlight %} + {% endautocrossref %} ###### Masternode Current diff --git a/_includes/layout/base/rpc-table.html b/_includes/layout/base/rpc-table.html index c6b0b24a..7e9802f7 100644 --- a/_includes/layout/base/rpc-table.html +++ b/_includes/layout/base/rpc-table.html @@ -251,7 +251,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Dash Masternode Y - + Updated in 0.12.3 Dash