From 80b5d0ddafacbeea6b19dea44f8e6fd45962b455 Mon Sep 17 00:00:00 2001 From: thephez Date: Mon, 9 Apr 2018 13:26:13 -0400 Subject: [PATCH] [Content] - RPC - Update Gobject message - Add mode parameter - Closes #52 --- .../devdoc/dash-core/rpcs/rpcs/gobject.md | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/gobject.md b/_includes/devdoc/dash-core/rpcs/rpcs/gobject.md index 98b52627..4315b87e 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/gobject.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/gobject.md @@ -423,7 +423,15 @@ Result (wrapped): 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
(exactly 1)" + d: "Result return format:
`json` (default)
`all` - Default before Dash Core 0.12.3 (for backwards compatibility)" + +{% enditemplate %} *Result---count of governance objects and votes* @@ -435,12 +443,30 @@ The `gobject count` RPC returns the count of governance objects and votes. {% enditemplate %} -*Example from Dash Core 0.12.2* +*Example from Dash Core 0.12.3 (mode: `json`/default)* {% highlight bash %} dash-cli -testnet gobject count {% 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): {% highlight text %} Governance Objects: 177 (Proposals: 177, Triggers: 0, Watchdogs: 0/0, \