From 7810475e89a9b3947df2683ad4f604c95df876cf Mon Sep 17 00:00:00 2001 From: thephez Date: Mon, 19 Aug 2019 16:30:41 -0400 Subject: [PATCH] RPC - getinfo add deprecations-warning --- _includes/devdoc/dash-core/rpcs/quick-reference.md | 2 +- _includes/devdoc/dash-core/rpcs/rpcs/getinfo.md | 12 +++++++++--- _includes/layout/base/rpc-table.html | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/quick-reference.md b/_includes/devdoc/dash-core/rpcs/quick-reference.md index 3ee841e9..0caa7661 100644 --- a/_includes/devdoc/dash-core/rpcs/quick-reference.md +++ b/_includes/devdoc/dash-core/rpcs/quick-reference.md @@ -151,7 +151,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core {% autocrossref %} * [Debug][rpc debug]: {{summary_debug}} {{DASH_UPDATED0_14_0}} -* [GetInfo][rpc getinfo]: {{summary_getInfo}} {{DASH_UPDATED0_14_0}} {{DEPRECATED}} +* [GetInfo][rpc getinfo]: {{summary_getInfo}} {{DASH_UPDATED0_14_1}} {{DEPRECATED}} * [GetMemoryInfo][rpc getmemoryinfo]: {{summary_getMemoryInfo}} {{DASH_UPDATED0_14_1}} {{NEW_14_0}} * [Help][rpc help]: {{summary_help}} * [Stop][rpc stop]: {{summary_stop}} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getinfo.md b/_includes/devdoc/dash-core/rpcs/rpcs/getinfo.md index a7fafd5c..444a8700 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getinfo.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getinfo.md @@ -27,6 +27,11 @@ Core. Use the RPCs listed in the See Also subsection below instead. p: "Required
(exactly 1)" d: "Information about this node and the network" +- n: "→
`deprecation-warning`" + t: "string" + p: "Required
(exactly 1)" + d: "Warning that the getinfo command is deprecated and will be removed in a future version" + - n: "→
`version`" t: "number (int)" p: "Required
(exactly 1)" @@ -114,7 +119,7 @@ Core. Use the RPCs listed in the See Also subsection below instead. {% enditemplate %} -*Example from Dash Core 0.12.2 with wallet support enabled* +*Example from Dash Core 0.14.1 with wallet support enabled* {% highlight bash %} dash-cli -testnet getinfo @@ -124,8 +129,9 @@ Result: {% highlight json %} { - "version": 120200, - "protocolversion": 70208, + "deprecation-warning": "WARNING: getinfo is deprecated and will be fully removed in a future version. Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo.", + "version": 140100, + "protocolversion": 70215, "walletversion": 61000, "balance": 0.00000000, "privatesend_balance": 0.00000000, diff --git a/_includes/layout/base/rpc-table.html b/_includes/layout/base/rpc-table.html index 99a2d5b8..73f86bea 100644 --- a/_includes/layout/base/rpc-table.html +++ b/_includes/layout/base/rpc-table.html @@ -221,7 +221,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Control GetInfo Y - Updated in 0.14.0 + Updated in 0.14.1 Control