Content - RPC - Update masternode genkey

- Add `compressed` parameter
 - Related to dashpay/dash#2232
This commit is contained in:
thephez 2018-10-23 09:57:59 -04:00
parent 86a6fc9e2e
commit f40777d68f
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099
2 changed files with 23 additions and 3 deletions

View file

@ -245,7 +245,15 @@ Masternode successfully started
The `masternode<!--noref--> genkey` RPC generates a new masternodeprivkey.
*Parameters: none*
*Parameter #1---generate compressed key*
{% itemplate ntpd1 %}
- n: "Compressed"
t: "bool"
p: "Optional<br>(0 or 1)"
d: "*Added in Dash Core 0.12.4*<br><br>If set to `true`, generates a compressed private key (default: false)"
{% enditemplate %}
*Result---masternode private key*
@ -257,7 +265,7 @@ The `masternode<!--noref--> genkey` RPC generates a new masternodeprivkey.
{% enditemplate %}
*Example from Dash Core 0.12.2*
*Example from Dash Core 0.12.4*
{% highlight bash %}
dash-cli -testnet masternode genkey
@ -268,6 +276,18 @@ Result:
92Mn5DQpnBHjFPbS3ZXcX3EdhuET18u3eXTTtVsdDzdcAMaXqtG
{% endhighlight %}
*Example from Dash Core 0.12.4 (compressed key)*
{% highlight bash %}
dash-cli -testnet masternode genkey true
{% endhighlight %}
Result:
{% highlight bash %}
cUHWQZQQNtrnvyYS3hERYyuzttvFAdw6JkrwS6T2gTZreH3oY6NJ
{% endhighlight %}
{% endautocrossref %}
###### Masternode<!--noref--> Outputs<!--noref-->

View file

@ -251,7 +251,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-b7b8">Dash</td>
<td class="tg-b7b8"><a href="#masternode">Masternode</a></td>
<td class="tg-dzk6">Y</td>
<td class="tg-dzk6">Updated in 0.12.3.0</td>
<td class="tg-dzk6">Updated in 0.12.4.0</td>
</tr>
<tr>
<td class="tg-yw4l">Dash</td>