From a44e6176f19dcbbf9db2fa3a06cdfddc5b2fd727 Mon Sep 17 00:00:00 2001 From: thephez Date: Wed, 21 Feb 2018 09:21:49 -0500 Subject: [PATCH] content - Generate RPCs updated - Mark get/setgenerate as removed - Add generatetoaddress details - Update Ref and Table --- .../devdoc/dash-core/rpcs/quick-reference.md | 6 +---- .../dash-core/rpcs/rpcs/generatetoaddress.md | 23 ++++++++----------- .../devdoc/dash-core/rpcs/rpcs/getgenerate.md | 4 +++- .../devdoc/dash-core/rpcs/rpcs/setgenerate.md | 4 +++- _includes/layout/base/rpc-table.html | 8 +++---- 5 files changed, 21 insertions(+), 24 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/quick-reference.md b/_includes/devdoc/dash-core/rpcs/quick-reference.md index 48fcb2e2..0a859daf 100644 --- a/_includes/devdoc/dash-core/rpcs/quick-reference.md +++ b/_includes/devdoc/dash-core/rpcs/quick-reference.md @@ -170,9 +170,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core {% autocrossref %} * [Generate][rpc generate]: {{summary_generate}} {{NEW0_11_0}}, {{UPDATED0_13_0}} -* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}} -* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}} -* {{DASH_NOT_IMPLEMENTED}} [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}} {{NEW0_13_0}} +* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}} {{DASH_NEW0_12_3}} {{NEW0_13_0}} {% endautocrossref %} @@ -318,8 +316,6 @@ default. * [GetHashesPerSec][rpc gethashespersec]: {{summary_getHashesPerSec}} * [GetWork][rpc getwork]: {{summary_getWork}} - {% endautocrossref %} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/generatetoaddress.md b/_includes/devdoc/dash-core/rpcs/rpcs/generatetoaddress.md index 9375c9fb..09b0c07f 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/generatetoaddress.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/generatetoaddress.md @@ -9,13 +9,12 @@ http://opensource.org/licenses/MIT. {% assign summary_generateToAddress="mines blocks immediately to a specified address." %} + + {% autocrossref %} -*Added in Bitcoin Core 0.13.0* +*Added in Dash Core 0.12.3 / Bitcoin Core 0.13.0* -**_Not implemented in Dash Core (as of 0.12.2)_** - -{% comment %} *Requires wallet support.* The `generatetoaddress` RPC {{summary_generateToAddress}} @@ -26,7 +25,7 @@ The `generatetoaddress` RPC {{summary_generateToAddress}} - n: "Blocks" t: "number (int)" p: "Required
(exactly 1)" - d: "The number of blocks to generate. The RPC call will not return until all blocks have been generated or the maxium number of iterations has been reached" + d: "The number of blocks to generate. The RPC call will not return until all blocks have been generated or the maximum number of iterations has been reached" {% enditemplate %} @@ -36,7 +35,7 @@ The `generatetoaddress` RPC {{summary_generateToAddress}} - n: "Address" t: "string (base58)" p: "Required
(exactly 1)" - d: "The address to send the newly generated Bitcoin to" + d: "The address that will receive the newly generated Dash" {% enditemplate %} @@ -64,21 +63,21 @@ The `generatetoaddress` RPC {{summary_generateToAddress}} d: "The hashes of the headers of the blocks generated, as hex in RPC byte order" {% enditemplate %} -*Example from Bitcoin Core 0.13.1* +*Example from Dash Core 0.12.3* Using regtest mode, generate 2 blocks with maximal 500000 iterations: {% highlight bash %} -bitcoin-cli -regtest generatetoaddress 2 "1BRo7qrYHMPrzdBDzfjmzt\ -eBdYAyTMXW75" 500000 +dash-cli -regtest generatetoaddress 2 "yaQzdWrDVYGncLKSKG4bHQ\ +ML9UdAe726QN" 500000 {% endhighlight %} Result: {% highlight json %} [ - "36252b5852a5921bdfca8701f936b39edeb1f8c39fffe73b0d8437921401f9af", - "5f2956817db1e386759aa5794285977c70596b39ea093b9eab0aa4ba8cd50c06" + "34726c518d1688a9c56b3399e892089d3a639b43de194517c07da2b168a3a89c", + "1f030abe2bb323b8895542e3a85ed8386bd92c67af9d19fe9c163a4c5f5ef149" ] {% endhighlight %} @@ -88,6 +87,4 @@ Result: * [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}} * [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}} -{% endcomment %} - {% endautocrossref %} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md b/_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md index 7692a574..aa8d6021 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getgenerate.md @@ -7,13 +7,15 @@ http://opensource.org/licenses/MIT. ##### GetGenerate {% include helpers/subhead-links.md %} + + {% assign summary_getGenerate="returns if the server is set to generate coins or not." %} {% autocrossref %} *Requires wallet support.* -*Removed in Bitcoin Core 0.13.0.* +**_Removed in Dash Core 0.12.3 / Bitcoin Core 0.13.0._** The `getgenerate` RPC {{summary_getGenerate}} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/setgenerate.md b/_includes/devdoc/dash-core/rpcs/rpcs/setgenerate.md index 7b8bcdf4..de25edb5 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/setgenerate.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/setgenerate.md @@ -9,11 +9,13 @@ http://opensource.org/licenses/MIT. {% assign summary_setGenerate="enables or disables hashing to attempt to find the next block." %} + + {% autocrossref %} *Requires wallet support.* -*Removed in Bitcoin Core 0.13.0.* +**_Removed in Dash Core 0.12.3 / Bitcoin Core 0.13.0._** The `setgenerate` RPC {{summary_setGenerate}} diff --git a/_includes/layout/base/rpc-table.html b/_includes/layout/base/rpc-table.html index 3ba59c11..fd521a03 100644 --- a/_includes/layout/base/rpc-table.html +++ b/_includes/layout/base/rpc-table.html @@ -304,20 +304,20 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header:: Generating GenerateToAddress - N - N/A + Y + 0.12.3.0+ Generating GetGenerate Y - + Removed in 0.12.3.0 Generating SetGenerate Y - + Removed in 0.12.3.0 Mining