RPC - update 2nd param name in submitblock

This commit is contained in:
thephez 2019-08-21 11:43:14 -04:00
parent 61b32ca374
commit 03b43859a5

View file

@ -3,6 +3,7 @@ This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT. http://opensource.org/licenses/MIT.
{% endcomment %} {% endcomment %}
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/submitblock.md" %} {% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/submitblock.md" %}
<!--__-->
##### SubmitBlock ##### SubmitBlock
{% include helpers/subhead-links.md %} {% include helpers/subhead-links.md %}
@ -23,13 +24,13 @@ The `submitblock` RPC {{summary_submitBlock}}
{% enditemplate %} {% enditemplate %}
*Parameter #2---additional parameters* *Parameter #2---dummy value*
{% itemplate ntpd1 %} {% itemplate ntpd1 %}
- n: "Parameters" - n: "`dummy`"
t: "object" t: "object"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
d: "A JSON object containing extra parameters. Not used directly by Dash Core and also not broadcast to the network. This is available for use by mining pools and other software. A common parameter is a `workid` string" d: "A dummy value for compatibility with BIP22. This value is ignored."
{% enditemplate %} {% enditemplate %}
@ -43,9 +44,9 @@ The `submitblock` RPC {{summary_submitBlock}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.14.1*
Submit the following block with the workid, "test". Submit the following block with the a dummy value, "test".
{% highlight bash %} {% highlight bash %}
dash-cli -testnet submitblock 0100002032e3965d5fdd7a883209d516599337eb4cb82f\ dash-cli -testnet submitblock 0100002032e3965d5fdd7a883209d516599337eb4cb82f\
@ -64,7 +65,7 @@ dash-cli -testnet submitblock 0100002032e3965d5fdd7a883209d516599337eb4cb82f\
96e3a36f3e815222cd1cb9586b3193c4a0de030477f621956d51feffffff02a00bd1000000\ 96e3a36f3e815222cd1cb9586b3193c4a0de030477f621956d51feffffff02a00bd1000000\
00001976a914d7b47d4b40a23c389f5a17754d7f60f511c7d0ec88ac316168821300000019\ 00001976a914d7b47d4b40a23c389f5a17754d7f60f511c7d0ec88ac316168821300000019\
76a914c9190e507834b78a624d7578f1ad3819592ca1aa88ac771f0000 \ 76a914c9190e507834b78a624d7578f1ad3819592ca1aa88ac771f0000 \
'{ "workid": "test" }' "test"
{% endhighlight %} {% endhighlight %}
Result (the block above was already on a local block chain): Result (the block above was already on a local block chain):