mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
content - Generate RPCs updated
- Mark get/setgenerate as removed - Add generatetoaddress details - Update Ref and Table
This commit is contained in:
parent
5f6008d276
commit
a44e6176f1
5 changed files with 21 additions and 24 deletions
|
@ -170,9 +170,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
|
||||||
{% autocrossref %}
|
{% autocrossref %}
|
||||||
|
|
||||||
* [Generate][rpc generate]: {{summary_generate}} {{NEW0_11_0}}, {{UPDATED0_13_0}}
|
* [Generate][rpc generate]: {{summary_generate}} {{NEW0_11_0}}, {{UPDATED0_13_0}}
|
||||||
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
* [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}} {{DASH_NEW0_12_3}} {{NEW0_13_0}}
|
||||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
|
||||||
* {{DASH_NOT_IMPLEMENTED}} [GenerateToAddress][rpc generatetoaddress]: {{summary_generateToAddress}} {{NEW0_13_0}}
|
|
||||||
|
|
||||||
{% endautocrossref %}
|
{% endautocrossref %}
|
||||||
|
|
||||||
|
@ -318,8 +316,6 @@ default.
|
||||||
|
|
||||||
* [GetHashesPerSec][rpc gethashespersec]: {{summary_getHashesPerSec}}
|
* [GetHashesPerSec][rpc gethashespersec]: {{summary_getHashesPerSec}}
|
||||||
* [GetWork][rpc getwork]: {{summary_getWork}}
|
* [GetWork][rpc getwork]: {{summary_getWork}}
|
||||||
<!-- Still in Dash
|
|
||||||
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
* [GetGenerate][rpc getgenerate]: {{summary_getGenerate}}
|
||||||
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
* [SetGenerate][rpc setgenerate]: {{summary_setGenerate}}
|
||||||
-->
|
|
||||||
{% endautocrossref %}
|
{% endautocrossref %}
|
||||||
|
|
|
@ -9,13 +9,12 @@ http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
{% assign summary_generateToAddress="mines blocks immediately to a specified address." %}
|
{% assign summary_generateToAddress="mines blocks immediately to a specified address." %}
|
||||||
|
|
||||||
|
<!-- __ -->
|
||||||
|
|
||||||
{% autocrossref %}
|
{% 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.*
|
*Requires wallet support.*
|
||||||
|
|
||||||
The `generatetoaddress` RPC {{summary_generateToAddress}}
|
The `generatetoaddress` RPC {{summary_generateToAddress}}
|
||||||
|
@ -26,7 +25,7 @@ The `generatetoaddress` RPC {{summary_generateToAddress}}
|
||||||
- n: "Blocks"
|
- n: "Blocks"
|
||||||
t: "number (int)"
|
t: "number (int)"
|
||||||
p: "Required<br>(exactly 1)"
|
p: "Required<br>(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 %}
|
{% enditemplate %}
|
||||||
|
|
||||||
|
@ -36,7 +35,7 @@ The `generatetoaddress` RPC {{summary_generateToAddress}}
|
||||||
- n: "Address"
|
- n: "Address"
|
||||||
t: "string (base58)"
|
t: "string (base58)"
|
||||||
p: "Required<br>(exactly 1)"
|
p: "Required<br>(exactly 1)"
|
||||||
d: "The address to send the newly generated Bitcoin to"
|
d: "The address that will receive the newly generated Dash"
|
||||||
|
|
||||||
{% enditemplate %}
|
{% 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"
|
d: "The hashes of the headers of the blocks generated, as hex in RPC byte order"
|
||||||
{% enditemplate %}
|
{% 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:
|
Using regtest mode, generate 2 blocks with maximal 500000 iterations:
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
bitcoin-cli -regtest generatetoaddress 2 "1BRo7qrYHMPrzdBDzfjmzt\
|
dash-cli -regtest generatetoaddress 2 "yaQzdWrDVYGncLKSKG4bHQ\
|
||||||
eBdYAyTMXW75" 500000
|
ML9UdAe726QN" 500000
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Result:
|
Result:
|
||||||
|
|
||||||
{% highlight json %}
|
{% highlight json %}
|
||||||
[
|
[
|
||||||
"36252b5852a5921bdfca8701f936b39edeb1f8c39fffe73b0d8437921401f9af",
|
"34726c518d1688a9c56b3399e892089d3a639b43de194517c07da2b168a3a89c",
|
||||||
"5f2956817db1e386759aa5794285977c70596b39ea093b9eab0aa4ba8cd50c06"
|
"1f030abe2bb323b8895542e3a85ed8386bd92c67af9d19fe9c163a4c5f5ef149"
|
||||||
]
|
]
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
@ -88,6 +87,4 @@ Result:
|
||||||
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
* [GetMiningInfo][rpc getmininginfo]: {{summary_getMiningInfo}}
|
||||||
* [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}}
|
* [GetBlockTemplate][rpc getblocktemplate]: {{summary_getBlockTemplate}}
|
||||||
|
|
||||||
{% endcomment %}
|
|
||||||
|
|
||||||
{% endautocrossref %}
|
{% endautocrossref %}
|
||||||
|
|
|
@ -7,13 +7,15 @@ http://opensource.org/licenses/MIT.
|
||||||
##### GetGenerate
|
##### GetGenerate
|
||||||
{% include helpers/subhead-links.md %}
|
{% include helpers/subhead-links.md %}
|
||||||
|
|
||||||
|
<!-- __ -->
|
||||||
|
|
||||||
{% assign summary_getGenerate="returns if the server is set to generate coins or not." %}
|
{% assign summary_getGenerate="returns if the server is set to generate coins or not." %}
|
||||||
|
|
||||||
{% autocrossref %}
|
{% autocrossref %}
|
||||||
|
|
||||||
*Requires wallet support.*
|
*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}}
|
The `getgenerate` RPC {{summary_getGenerate}}
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,13 @@ http://opensource.org/licenses/MIT.
|
||||||
|
|
||||||
{% assign summary_setGenerate="enables or disables hashing to attempt to find the next block." %}
|
{% assign summary_setGenerate="enables or disables hashing to attempt to find the next block." %}
|
||||||
|
|
||||||
|
<!-- __ -->
|
||||||
|
|
||||||
{% autocrossref %}
|
{% autocrossref %}
|
||||||
|
|
||||||
*Requires wallet support.*
|
*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}}
|
The `setgenerate` RPC {{summary_setGenerate}}
|
||||||
|
|
||||||
|
|
|
@ -304,20 +304,20 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-yw4l">Generating</td>
|
<td class="tg-yw4l">Generating</td>
|
||||||
<td class="tg-yw4l"><a href="#generatetoaddress">GenerateToAddress</a></td>
|
<td class="tg-yw4l"><a href="#generatetoaddress">GenerateToAddress</a></td>
|
||||||
<td class="tg-baqh">N</td>
|
<td class="tg-baqh">Y</td>
|
||||||
<td class="tg-baqh">N/A</td>
|
<td class="tg-baqh">0.12.3.0+</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-b7b8">Generating</td>
|
<td class="tg-b7b8">Generating</td>
|
||||||
<td class="tg-b7b8"><a href="#getgenerate">GetGenerate</a></td>
|
<td class="tg-b7b8"><a href="#getgenerate">GetGenerate</a></td>
|
||||||
<td class="tg-dzk6">Y</td>
|
<td class="tg-dzk6">Y</td>
|
||||||
<td class="tg-dzk6"></td>
|
<td class="tg-dzk6">Removed in 0.12.3.0</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-yw4l">Generating</td>
|
<td class="tg-yw4l">Generating</td>
|
||||||
<td class="tg-yw4l"><a href="#setgenerate">SetGenerate</a></td>
|
<td class="tg-yw4l"><a href="#setgenerate">SetGenerate</a></td>
|
||||||
<td class="tg-baqh">Y</td>
|
<td class="tg-baqh">Y</td>
|
||||||
<td class="tg-baqh"></td>
|
<td class="tg-baqh">Removed in 0.12.3.0</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-b7b8">Mining</td>
|
<td class="tg-b7b8">Mining</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue