Skip to content

Latest commit

 

History

History
65 lines (40 loc) · 4.17 KB

config-masternodes-b.md

File metadata and controls

65 lines (40 loc) · 4.17 KB

Configuration procedure for a new masternode

This scenario is intended for those who are configuring their masternode from a clean start (or are not transferring the existing configuration).

Before describing the individual steps, the following prerequisites apply:

  • You have a server with a static public IP address, on which you have installed the Hilux daemon (hiluxd) software.
  • The server is running a Linux operating system. While other operating systems may work, this guide will assume you are following best practices and using the most popular and supported system available.
  • You have access to the server over SSH.
  • hiluxd has been installed in the home directory of the user which you use, to log in to the server.

Sending 1000 Hilux to the address controlled by your hardware wallet

Step 1

The procedure to send 1000 Hilux to a hardware wallet is described here.

Filling in the masternode configuration fields

Step 2

Run Hilux Masternode Tool and click the New button to enter edit mode. If you don't have any masternode entries in the current configuration, edit mode is activated automatically.

Step 3

Fill in the fields:

  • Name: name/label of your masternode (can be any alphanumeric string).
  • IP: the IP address of the hiluxd server.
  • port: the TCP port number on which hiluxd is listening for incoming connections. You should use the value of the rpcport parameter from the hilux.conf file. The default port value is 9999.

Step 4

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 Hilux collateral, but in fact, they have no relationship. The masternode private key is generated independently and is only used in the process of signing the start masternode message and voting on proposals, and as such it is not particularly dangerous if it falls into the wrong hands. For this reason, the application includes a feature to automatically generate masternode private keys by simply clicking a button, thus avoiding a requirement to use Hilux Core for this purpose. From a technical point of view, a masternode private key is a normal private key in the Hilux WIF uncompressed format.

Step 5

Enter information related to the collateral as described here.
New masternode configuration steps

Changing the configuration of your Hilux daemon

As part of the procedure described above, you generated a new masternode private key, which must now be transferred to your Hilux daemon configuration file on the remote server.

Step 6

Log in to the server running hiluxd using your preferred SSH terminal client (PuTTY on Windows, for example), and then:

  • Open the ~/.hiluxcore/hilux.conf file with your preferred Linux text editor, for example: nano ~/.hiluxcore/hilux.conf

  • Set the masternodeprivkey parameter to match the masternode private key you generated in Step 5 . This key is the mechanism by which a link is established between the wallet holding the collateral and sending the start command, and the target hiluxd instance which should operate as a masternode.
    Masternode privkey

  • Save the file and exit the editor.

  • Restart hiluxd:

 $ cd ~
 $ ./hilux-cli stop
 $ ./hiluxd

Next steps

Before you continue with the last step of the whole configuration (sending the start masternode message), make sure that the number of confirmations for the collateral transaction is greater than or equal to 15 (this can be verified in the Lookup dialog). If less than 15 confirmations exist, you will not be able to start your masternode successfully. Once this final requirement has been met, you can finally perform the start masternode operation.