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 d62724bbe6
commit 7806d68e38
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-->