From e842408f5a69e81d266f6b2eae9af616223a7636 Mon Sep 17 00:00:00 2001 From: thephez Date: Tue, 9 Apr 2019 17:33:59 -0400 Subject: [PATCH] RPC - Add more detail to quorum dkgstatus --- .../devdoc/dash-core/rpcs/rpcs/quorum.md | 143 +++++++++++++++++- 1 file changed, 142 insertions(+), 1 deletion(-) diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/quorum.md b/_includes/devdoc/dash-core/rpcs/rpcs/quorum.md index e55546cb..256111fd 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/quorum.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/quorum.md @@ -153,7 +153,7 @@ The `quorum info` RPC returns information about a specific quorums. d: "An object describing a particular member" - n: "→ → →
`proTxHash`" - t: "string" + t: "string (hex)" p: "Required
(exactly 1)" d: "The masternode's Provider Registration transaction hash" @@ -234,6 +234,145 @@ Result (truncated): ###### Quorum DKGStatus +{% autocrossref %} + +The `quorum list` RPC displays a list of on-chain quorums. + +*Parameter #1---provider registration hash* + +{% itemplate ntpd1 %} +- n: "`proTxHash`" + t: "string (hex)" + p: "Required
(exactly 1)" + d: "The Provider Registration transaction hash of the masternode to show status for. If set to an empty string, the local status is shown." +{% enditemplate %} + +*Parameter #2---detail level* + +{% itemplate ntpd1 %} +- n: "`detail_level`" + t: "number" + p: "Required
(exactly 1)" + d: "Detail level of output:
`0` - Only show counts
`1` - Show member indexes
`2` - Show member's ProTxHashes" +{% enditemplate %} + +*Result---JSON DKG details (detail level = 0)* + +{% itemplate ntpd1 %} +- n: "`result`" + t: "array" + p: "Required
(exactly 1)" + d: "An array of objects each containing a provider transaction, or JSON `null` if an error occurred" + +- n: "→
`proTxHash`" + t: "string (hex)" + p: "Required
(exactly 1)" + d: "The hash of the initial provider registration transaction as hex in RPC byte order" + +- n: "→
`time`" + t: "string (hex)" + p: "Required
(exactly 1)" + d: "" + +- n: "→
`timeStr`" + t: "string (hex)" + p: "Required
(exactly 1)" + d: "" + +- n: "→
`session`" + t: "string (hex)" + p: "Required
(exactly 1)" + d: "" + +- n: "→ →
LLMQ Type" + t: "object" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`llmqType`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`quorumHash`" + t: "string (hex)" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`quorumHeight`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`phase`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`sentContributions`" + t: "bool" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`sentComplaint`" + t: "bool" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`sentJustification`" + t: "bool" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`sentPrematureCommitment`" + t: "bool" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`aborted`" + t: "bool" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`badMembers`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`weComplain`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`receivedContributions`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`receivedComplaints`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`receivedJustifications`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→ → →
`receivedPrematureCommitments`" + t: "number" + p: "Required
(exactly 1)" + d: "" + +- n: "→
`minableCommitments`" + t: "object" + p: "Required
(exactly 1)" + d: "" + +{% enditemplate %} + +*Example from Dash Core 0.14.0* + {% highlight bash %} dash-cli -testnet quorum dkgstatus {% endhighlight %} @@ -268,6 +407,8 @@ Result: } {% endhighlight %} +{% endautocrossref %} + {% highlight bash %} dash-cli -testnet quorum dkgstatus "" 1 {% endhighlight %}