From 8a4f9c9dcd050d01af6ded6604c85821431f5846 Mon Sep 17 00:00:00 2001 From: thephez Date: Tue, 23 Oct 2018 11:23:10 -0400 Subject: [PATCH] Content - RPC - Add masternode check - Related to dashpay/dash#2218 --- .../devdoc/dash-core/rpcs/rpcs/masternode.md | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md b/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md index 19f189eb..ac0c5b0d 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/masternode.md @@ -17,6 +17,62 @@ The `masternode` RPC {{summary_masternode}} {% endautocrossref %} +###### Masternode Check + + +{% autocrossref %} + +The `masternode check` RPC forces a check of all masternodes and removes invalid ones. + +*Parameters: none* + +*Result---number of removed and total masternodes* + +{% itemplate ntpd1 %} +- n: "`result`" + t: "object" + p: "Required
(exactly 1)" + d: "Masternode check results" + +- n: "→
`removedTotalCount`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of all masternodes that were removed" + +- n: "→
`removedEnabledCount`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of enabled masternodes that were removed" + +- n: "→
`totalCount`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of all masternodes" + +- n: "→
`enabledCount`" + t: "int" + p: "Required
(exactly 1)" + d: "Count of enabled masternodes" + +{% enditemplate %} + +*Example from Dash Core 0.12.4* + +{% highlight bash %} +dash-cli -testnet masternode check +{% endhighlight %} + +Result: +{% highlight bash %} +{ + "removedTotalCount": 0, + "removedEnabledCount": 0, + "totalCount": 15, + "enabledCount": 15 +} +{% endhighlight %} +{% endautocrossref %} + ###### Masternode Count