From 61d4f1b066b9339b95487e011654355d6c16b8c6 Mon Sep 17 00:00:00 2001 From: thephez Date: Wed, 21 Feb 2018 13:08:25 -0500 Subject: [PATCH] content - GetInfo RPCs updated - getaddednodeinfo, getmemoryinfo, getnetworkinfo - Update Ref and Table --- .../devdoc/dash-core/rpcs/quick-reference.md | 7 +++--- .../dash-core/rpcs/rpcs/getaddednodeinfo.md | 22 ++++++++++++------- .../dash-core/rpcs/rpcs/getmemoryinfo.md | 17 +++++--------- .../dash-core/rpcs/rpcs/getnetworkinfo.md | 16 ++++++++++---- _includes/layout/base/rpc-table.html | 6 ++--- 5 files changed, 38 insertions(+), 30 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/quick-reference.md b/_includes/devdoc/dash-core/rpcs/quick-reference.md index 8fbdf0da..65f7cab3 100644 --- a/_includes/devdoc/dash-core/rpcs/quick-reference.md +++ b/_includes/devdoc/dash-core/rpcs/quick-reference.md @@ -137,6 +137,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core * [Debug][rpc debug]: {{summary_debug}} {{DASH_UPDATED0_12_3}} * [GetInfo][rpc getinfo]: {{summary_getInfo}} {{DEPRECATED}} +* [GetMemoryInfo][rpc getmemoryinfo]: {{summary_getMemoryInfo}} {{DASH_NEW0_12_3}} {{NEW_14_0}} * [Help][rpc help]: {{summary_help}} * [Stop][rpc stop]: {{summary_stop}} @@ -197,10 +198,10 @@ These RPCs are all Dash-specific and not found in Bitcoin Core * [AddNode][rpc addnode]: {{summary_addNode}} {{UPDATED0_14_0}} * [ClearBanned][rpc clearbanned]: {{summary_clearBanned}} {{NEW0_12_0}} * [DisconnectNode][rpc disconnectnode]: {{summary_disconnectNode}} {{NEW0_12_0}} {{UPDATED0_14_1}} -* [GetAddedNodeInfo][rpc getaddednodeinfo]: {{summary_getAddedNodeInfo}} {{UPDATED0_14_0}} +* [GetAddedNodeInfo][rpc getaddednodeinfo]: {{summary_getAddedNodeInfo}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_0}} * [GetConnectionCount][rpc getconnectioncount]: {{summary_getConnectionCount}} * [GetNetTotals][rpc getnettotals]: {{summary_getNetTotals}} {{UPDATED0_12_0}} -* [GetNetworkInfo][rpc getnetworkinfo]: {{summary_getNetworkInfo}} {{UPDATED0_13_0}} +* [GetNetworkInfo][rpc getnetworkinfo]: {{summary_getNetworkInfo}} {{DASH_UPDATED0_12_3}} {{UPDATED0_13_0}} * [GetPeerInfo][rpc getpeerinfo]: {{summary_getPeerInfo}} {{UPDATED0_13_0}} * [ListBanned][rpc listbanned]: {{summary_listBanned}} {{NEW0_12_0}} * [Ping][rpc ping]: {{summary_ping-rpc}} @@ -239,8 +240,6 @@ These RPCs are all Dash-specific and not found in Bitcoin Core * [ValidateAddress][rpc validateaddress]: {{summary_validateAddress}} {{UPDATED0_13_0}} * [VerifyMessage][rpc verifymessage]: {{summary_verifyMessage}} -* {{DASH_NOT_IMPLEMENTED}} [GetMemoryInfo][rpc getmemoryinfo]: {{summary_getMemoryInfo}} {{NEW_14_0}} - {% endautocrossref %} #### Wallet RPCs diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getaddednodeinfo.md b/_includes/devdoc/dash-core/rpcs/rpcs/getaddednodeinfo.md index ca655507..bc61e79b 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getaddednodeinfo.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getaddednodeinfo.md @@ -7,23 +7,29 @@ http://opensource.org/licenses/MIT. ##### GetAddedNodeInfo {% include helpers/subhead-links.md %} + + {% assign summary_getAddedNodeInfo="returns information about the given added node, or all added nodes (except onetry nodes). Only nodes which have been manually added using the `addnode` RPC will have their information displayed." %} {% autocrossref %} The `getaddednodeinfo` RPC {{summary_getAddedNodeInfo}} -*Parameter #1---whether to display connection information* +Prior to Dash Core 0.12.3, this dummy parameter was required for historical purposes but not used: + +*DEPRECATED Parameter #1---whether to display connection information* {% itemplate ntpd1 %} -- n: "Dummy" - t: "bool" - p: "Required
(exactly 1)" - d: "Kept for historical purposes but ignored

*Removed in Bitcoin Core 0.14.0*" +- n: "_Dummy_" + t: "_bool_" + p: "_Required
(exactly 1)_" + d: "_Removed in Dash Core 0.12.3_" {% enditemplate %} -*Parameter #2---what node to display information about* +Beginning with Dash Core 0.12.3, this is the single (optional) parameter: + +*Parameter #1---what node to display information about* {% itemplate ntpd1 %} - n: "`node`" @@ -78,10 +84,10 @@ The `getaddednodeinfo` RPC {{summary_getAddedNodeInfo}} {% enditemplate %} -*Example from Dash Core 0.12.2* +*Example from Dash Core 0.12.3* {% highlight bash %} -dash-cli getaddednodeinfo true +dash-cli getaddednodeinfo {% endhighlight %} Result (real hostname and IP address replaced with [RFC5737][] reserved address): diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getmemoryinfo.md b/_includes/devdoc/dash-core/rpcs/rpcs/getmemoryinfo.md index 534464c9..2321a4d1 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getmemoryinfo.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getmemoryinfo.md @@ -13,11 +13,8 @@ http://opensource.org/licenses/MIT. {% autocrossref %} -*Added in Bitcoin Core 0.14.0* +*Added in Dash Core 0.12.3 / Bitcoin Core 0.14.0* -**_Not implemented in Dash Core (as of 0.12.2)_** - -{% comment %} The `getmemoryinfo` RPC {{summary_getMemoryInfo}} *Parameters: none* @@ -67,10 +64,10 @@ The `getmemoryinfo` RPC {{summary_getMemoryInfo}} {% enditemplate %} -*Example from Bitcoin Core 0.14.1* +*Example from Dash Core 0.12.3* {% highlight bash %} -bitcoin-cli getmemoryinfo +dash-cli getmemoryinfo {% endhighlight %} Result: @@ -78,11 +75,11 @@ Result: {% highlight json %} { "locked": { - "used": 0, - "free": 65536, + "used": 32, + "free": 65504, "total": 65536, "locked": 65536, - "chunks_used": 0, + "chunks_used": 1, "chunks_free": 1 } } @@ -93,6 +90,4 @@ Result: * [GetMemPoolInfo][rpc getmempoolinfo]: {{summary_getMemPoolInfo}} -{% endcomment %} - {% endautocrossref %} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkinfo.md b/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkinfo.md index e905e6e2..1f25f110 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkinfo.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkinfo.md @@ -7,6 +7,8 @@ http://opensource.org/licenses/MIT. ##### GetNetworkInfo {% include helpers/subhead-links.md %} + + {% assign summary_getNetworkInfo="returns information about the node's connection to the network." %} {% autocrossref %} @@ -94,10 +96,15 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}} d: "*Added in Bitcoin Core 0.11.0*

Set to `true` if randomized credentials are set for this proxy. Otherwise set to `false`" - n: "→
`relayfee`" - t: "number (Dash)" + t: "number (DASH)" p: "Required
(exactly 1)" d: "The minimum relay fee for non-free transactions in order for this node to accept it into its memory pool" +- n: "→
`incrementalfee`" + t: "number (DASH)" + p: "Required
(exactly 1)" + d: "*Added in Dash Core 0.12.3*

The minimum fee increment for mempool limiting or BIP 125 replacement in DASH/kB" + - n: "→
`localaddresses`" t: "array" p: "Required
(exactly 1)" @@ -130,7 +137,7 @@ The `getnetworkinfo` RPC {{summary_getNetworkInfo}} {% enditemplate %} -*Example from Dash Core 0.12.2* +*Example from Dash Core 0.12.3* {% highlight bash %} dash-cli getnetworkinfo @@ -140,8 +147,8 @@ Result (actual addresses have been replaced with [RFC5737][] reserve {% highlight json %} { - "version": 120200, - "subversion": "/Dash Core:0.12.2/", + "version": 120300, + "subversion": "/Dash Core:0.12.3/", "protocolversion": 70208, "localservices": "0000000000000005", "localrelay": true, @@ -172,6 +179,7 @@ Result (actual addresses have been replaced with [RFC5737][] reserve } ], "relayfee": 0.00001000, + "incrementalfee": 0.00001000, "localaddresses": [ { "address": "192.0.2.113", diff --git a/_includes/layout/base/rpc-table.html b/_includes/layout/base/rpc-table.html index 53e54c17..d66d34f3 100644 --- a/_includes/layout/base/rpc-table.html +++ b/_includes/layout/base/rpc-table.html @@ -371,7 +371,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Network GetAddedNodeInfo Y - + Updated in 0.12.3.0 Network @@ -508,8 +508,8 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Util GetMemoryInfo - N - N/A + Y + 0.12.3.0+ Util