content - Masternode count RPC update

- RPC result / output examples and summary table
 - Closes #22
This commit is contained in:
thephez 2018-02-12 14:35:31 -05:00
parent 597d460bdf
commit 207746c4b5
2 changed files with 68 additions and 7 deletions

View file

@ -30,7 +30,7 @@ The `masternode<!--noref--> count` RPC prints the number of all known masternode
- n: "Mode" - n: "Mode"
t: "string (hex)" t: "string (hex)"
p: "Optional<br>(exactly 1)" p: "Optional<br>(exactly 1)"
d: "Which masternodes to count:<br>`ps` - PrivateSend capable,<br>`enabled` - Enabled,<br>`all` - All,<br>`qualify` - Eligible for payment" d: "Which masternodes to count:<br>`total` - Pre-0.12.3 default result,<br>`ps` - PrivateSend capable,<br>`enabled` - Enabled,<br>`all` - All,<br>`qualify` - Eligible for payment"
{% enditemplate %} {% enditemplate %}
@ -38,13 +38,33 @@ The `masternode<!--noref--> count` RPC prints the number of all known masternode
{% itemplate ntpd1 %} {% itemplate ntpd1 %}
- n: "`result`" - n: "`result`"
t: "string (hex)" t: "object"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "Transaction ID for the collateral transaction" d: "Masternode count by mode"
- n: "→<br>`total`"
t: "int"
p: "Required<br>(exactly 1)"
d: "Count of all masternodes"
- n: "→<br>`ps_compatible`"
t: "int"
p: "Required<br>(exactly 1)"
d: "Count of PrivateSend compatible masternodes"
- n: "→<br>`enabled`"
t: "int"
p: "Required<br>(exactly 1)"
d: "Count of enabled masternodes"
- n: "→<br>`qualify`"
t: "int"
p: "Required<br>(exactly 1)"
d: "Count of masternodes qualified to receive payment"
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.3*
{% highlight bash %} {% highlight bash %}
dash-cli -testnet masternode count dash-cli -testnet masternode count
@ -52,10 +72,28 @@ dash-cli -testnet masternode count
Result: Result:
{% highlight bash %} {% highlight bash %}
120 {
"total": 142,
"ps_compatible": 13,
"enabled": 13,
"qualify": 6
}
{% endhighlight %} {% 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<br>(exactly 1)"
d: "Summary of masternodes in each state"
{% enditemplate %}
*Example from Dash Core 0.12.3*
{% highlight bash %} {% highlight bash %}
dash-cli -testnet masternode count all dash-cli -testnet masternode count all
@ -66,6 +104,29 @@ Result:
Total: 129 (PS Compatible: 97 / Enabled: 97 / Qualify: 90) Total: 129 (PS Compatible: 97 / Enabled: 97 / Qualify: 90)
{% endhighlight %} {% endhighlight %}
**Get total count of all masternodes (default output of `masternode<!--noref--> count` pre-0.12.3)**
*Result---number of known masternodes in mode*
{% itemplate ntpd1 %}
- n: "`result`"
t: "int"
p: "Required<br>(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 %} {% endautocrossref %}
###### Masternode<!--noref--> Current ###### Masternode<!--noref--> Current

View file

@ -251,7 +251,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-b7b8">Dash</td> <td class="tg-b7b8">Dash</td>
<td class="tg-b7b8"><a href="#masternode">Masternode</a></td> <td class="tg-b7b8"><a href="#masternode">Masternode</a></td>
<td class="tg-dzk6">Y</td> <td class="tg-dzk6">Y</td>
<td class="tg-dzk6"></td> <td class="tg-dzk6">Updated in 0.12.3</td>
</tr> </tr>
<tr> <tr>
<td class="tg-yw4l">Dash</td> <td class="tg-yw4l">Dash</td>