This procedure is for people who are configuring their masternode from the beginning (are not transfering the existing configuration).
Before covering the individual steps, I will briefly describe the prerequisites:
-
You have a server with an IP address available from the Internet on which you have installed Dash daemon (dashd) software.
-
You have access to the server with an SSH terminal.
-
The operating system you are using on your server is Linux. I won't describe all possible OS-es on which you can run a masternode, but instead, I assume that you are using the most popular one for this purpose.
-
dashd has been installed in the home directory of the user to which you log on to the server.
The procedure is described here.
Run DashMasternodeTool application.
Click the New
button. This will activate the editing mode. If you don't have any masternode configured, the editing mode will be invoked automatically just after starting the application.
Fill in the fields:
-
Name
: name/label of your masternode (it can be any alphanumeric string). -
IP
: the dashd server's IP address. -
port
: the TCP port number on which dashd is listening for incoming connections. You should use therpcport
parameter's value fromdash.conf
file.
Click the Generate new
button on the right side of the MN private key
field to generate a new masternode private key.
Masternode private keys. Some users think that the masternode private key is somehow associated with the private key of the 1000-Dash collateral, but in fact, they have no relationship. The masternode private key is generated independently and is only used in the process of signing start masternode message and voting on proposals and as such it is not particularly dangerous for him to get into the wrong hands. Therefore, the application gives the possibility of generating it by simple button-click and thus avoiding using Dash Core for this purpose. From a technical point of view, a masternode private key in a normal Dash WiF uncompressed format.
Enter the collateral related information as described here.
During the procedure described in section 2, you have generated a new masternode private key, which has to be transferred to your Dash daemon config file.
Log in to the server running Dash daemon software with your preferred SSH terminal client (for example putty on Windows OS), and:
-
open the
~/.dashcore/dash.conf
file with your preferred linux text editor, for example:vi ~/.dashcore/dash.conf
-
set the
masternodeprivkey
parameter with the masternode private key you have generated in Step 5
-
save the file and exit the editor
-
restart the Dash daemon:
$ cd ~
$ ./dash-cli stop
$ ./dashd
Before you go to the last step of the whole procedure, which is sending a start masternode message, you have to wait until the collateral's transaction has at least 15 confirmations (look here).