[Content] - RPC - Update Gobject message

- Add mode parameter
 - Closes #52
This commit is contained in:
thephez 2018-04-09 13:26:13 -04:00
parent d075fc209e
commit 80b5d0ddaf

View file

@ -423,7 +423,15 @@ Result (wrapped):
The `gobject count` RPC returns the count of governance objects and votes. The `gobject count` RPC returns the count of governance objects and votes.
*Parameters: none* *Parameter #1---mode*
{% itemplate ntpd1 %}
- n: "`mode`"
t: "string"
p: "Optional<br>(exactly 1)"
d: "Result return format:<br>`json` (default)<br>`all` - Default before Dash Core 0.12.3 (for backwards compatibility)"
{% enditemplate %}
*Result---count of governance objects and votes* *Result---count of governance objects and votes*
@ -435,12 +443,30 @@ The `gobject count` RPC returns the count of governance objects and votes.
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.12.3 (mode: `json`/default)*
{% highlight bash %} {% highlight bash %}
dash-cli -testnet gobject count dash-cli -testnet gobject count
{% endhighlight %} {% endhighlight %}
Result (wrapped):
{% highlight json %}
{
"objects_total": 177,
"proposals": 177,
"triggers": 0,
"other": 0,
"erased": 5,
"votes": 9680
}
{% endhighlight %}
*Example from Dash Core 0.12.3 (mode: `all`)*
{% highlight bash %}
dash-cli -testnet gobject count all
{% endhighlight %}
Result (wrapped): Result (wrapped):
{% highlight text %} {% highlight text %}
Governance Objects: 177 (Proposals: 177, Triggers: 0, Watchdogs: 0/0, \ Governance Objects: 177 (Proposals: 177, Triggers: 0, Watchdogs: 0/0, \