This guide explains how to configure a 1,000 NYX Master Node to use a hot and cold wallet running on Windows 7 Workstation or above. Adding additional nodes on the same wallet is on NYX Multi Node Single Wallet Guide

Why you should do this (Hot and Cold) and not have your coins in your Master Node can be found here: Do NOT keep your coins on your master node

I am using Windows Server 2012 Hyper-V to mount 2 identical Virtual Machines (VMs) running the HTRC wallet. One will be used as the Online Hot wallet that is presented to the internet and the other is the offline cold wallet that will hold my 1,000 NYX for my Master Node stake. You could alternatively use 2 low spec PCs with a fresh install of windows or even a good spec PC with a Virtual machine manager installed. All down to personal preference

Prerequisites:

  • 2x Local Windows PC’s (virtual or physical) newly installed and patched. Latest NYX client installed and fully sync with the block chain.
  • 1st PC will be Offline Cold Wallet with 1,000 Coin for your stake. Always have a little over for transaction fees etc. This VM can be configured to use local DHCP
  • 2nd PC will be Online Hot Wallet with Zero Coins but will be configured with a static IP and mapped via your local router to your public IP on port 4330. Both TCP and UDP ports should be enabled and port forwarded to the internal computer for the Hot wallet
  • Encrypt your staking wallet with super secure password and record in safe location. No need to encrypt the Hot Wallet as there will be no coins

 

Both Windows systems should look like this. My Hot Wallet is called NYX-MN1 and my wallet with coins is NYX-Wallet

NYX Master Node Hot and Cold Wallets
NYX Master Node Hot and Cold Wallets – Click to Enlarge

 

Offline NYX Masternode Windows Cold Wallet

The first thing we need to do is send our stake amount of 1,000 NYX to a new address that will be our node address. It has to be exactly 1,000 coins not more, not less.

To do this create a new receiving address on your cold wallet and call it Wallet1. You can make a new Address by using the wallet interface or use command line on the console tab

Open the Debug window and select the “Console” tab. Type in <getaccountaddress Wallet1>   where Wallet1 is the name you give your node.  You should get a familiar looking coin address.

NYX getaccountaddress
NYX getaccountaddress – Click to Enlarge

Make a note of this address in Notepad on your desktop. We will need for later

We now need to send 1,000 NYX to this new address.  Close the debug window for now and navigate to the Send TAB. Send the NYX coin to the new address you have just created by pasting the new address in the “pay to” field.  The label field should auto populate with the name you gave the address confirming the address you are about to send to is correct.

NYX 1000 MasterNode
NYX 1000 MasterNode – Click to Enlarge

You will see a pop up message saying that you have sent 1,000 NYX to Yourself,   wow that was scary!!!

Back on the dash board you should see the same balance minus a small transaction fee, check the Transaction tab and wait for at least 20 confirmations before continuing. I normaly like to wait for more than 20, we are in no rush.

Once you have the 20+ confirmations its best to check they are listed as the correct amount at the correct location. On the “console” menu under the “Debug Window” and check our coins are all at one address. Type in <listaddressgroupings>  You should see 1,000 NYX in the new address called Wallet1

Checking my 1000 NYX Coin
Checking my 1000 NYX Coin – Click to Enlarge

Now we have confirmed our 1,000 NYX coins are in the new address and we have had over 20 confirmations we can now move on.

NOTE: Do NOT try this next part until you have the confirmations, you may get an incorrect “private Key” and then the node will NOT work as it should

Back to the Console, you should know where it is by now. Type <masternode genkey>  you will get a much longer string compared to the wallet address you created. This is your Master Node private Key. Save this in the text file on your desktop.

NYX Masternode genkey
NYX Masternode genkey – Click to Enlarge

Also on the Console type <masternode outputs>  You should now get another long string. This is your “VALID TRANSACTION HASH” (the long number) followed by your “TRANSACTION INDEX” (the single number). Add this to your notes document for later.

NYX Master Node Outputs
NYX Master Node Outputs – Click to Enlarge

Windows Cold Wallet Config Files

Still on the Cold wallet with your coins in them we need to edit 2 text files in notepad with new setting. You will find the files under your profile here:

c:\user\%user name%\Appdata\roaming\NYX

you need to find the following 2 files and edit as follows. Locations on other Windows versions may very but essentially in the same place in the profile. They also maybe in a custom location if you selected that during wallet install.

Comments in <more than and less than> are for you to fill in

Comments in (Brackets) are to help you understand what this does

NYX.conf

rpcuser=<your made up username>
rpcpassword=<your made up password>
rpcallowip=127.0.0.1
rpcport=4331
listen=1
server=1
daemon=1
addnode=185.117.75.155 (These are other MasterNodes and will change as servers go offline and new ones come on)
addnode=104.216.8.36
addnode=185.117.75.183
addnode=104.216.8.37
addnode=185.106.120.172
addnode=84.200.84.212
addnode=185.82.200.167
addnode=84.200.17.119
addnode=178.211.39.121
addnode=209.134.3.7

masternode.conf

Wallet1 <Your Public IP>:4330 <masternode genkey> <masternode outputs>

So the file should look something like this, but one long line.  It is split here below due to word wrap

Wallet1 <Your Public IP>:4330 NHxcAElkhfslihsiopfhkmniijhIH7GHYSOPZbXr1 aaDhya9sljkojjfofjkjJHWc4fb4ad9dbf0b5676d2uyF8895 0

NYX Windows Hot Wallet Config Files

On the public facing “HOT” wallet you should not keep coins in it and therefor do not need to encrypt the wallet. I would recommend it is setup to automatically start up in the event the node is rebooted during a power cut for example

On the NYX Hot wallet, only the nyx.conf needs to be edited

nyx.conf

rpcuser=<your made up username>
rpcpassword=<your made up password>
rpcallowip=127.0.0.1
rpcport=4331
listen=1
server=1
daemon=1
externalip=<Your External IP address>
masternode=1  (Sets the Wallet up as a Masternode)
masternodeprivkey=<Output from masternode genkey>
addnode=185.117.75.155 (These are other MasterNodes and will change as servers go offline and new ones come on)
addnode=104.216.8.36
addnode=185.117.75.183
addnode=104.216.8.37
addnode=185.106.120.172
addnode=84.200.84.212
addnode=185.82.200.167
addnode=84.200.17.119
addnode=178.211.39.121
addnode=209.134.3.7

Starting the NYX Master Node

Now that the configuration files are setup we can reboot both Nodes and confirm they both auto start. If not check the auto start settings under options tab.

Once booted and the wallets have sync’d, On the Cold Wallet with the coins check the “Masternodes” left menu and the “My Master Nodes” Tab. It should look like this

NYX node My Masternodes
NYX node My Masternodes – Click to Enlarge

The fact that the status is “MISSING” is OK at this stage. On the HOT wallet goto the console tab and run “masternode status”  You should see something like this.

NYX Masternode not in master node list
NYX Masternode not in master node list – Click to Enlarge

This is also normal and we need to wait for 20-30 Mins for the node to register on the Masternode list.

Now We need to start the node. Starting the Nodes is done from the Cold wallet and can be either command line on the console <masternode start-all> or by the wallet interface

NYX Masternode Start
NYX Masternode Start – Click to Enlarge

 

NYX Masternode Started Successfully
NYX Masternode Started Successfully – Click to Enlarge

After anything from 5 to 30 Mins your Node should show the status as Enabled.

 

Running Sentinel on NYX Masternode

If you find your node constantly losing connection and goes offline with a WATCHDOG_EXPIRED Status then you will need to run Sentinel. This can be downloaded from various source like the NYX Github for example.

Place the EXE file in the directory as your NYX EXE files and create a short cut on the desktop to it. Edit the Target string to look like this.

C:\NYX\Sentinel\sentinel-win64.exe –config=C:\NYX\Data\nyx.conf

The target nyx.conf should be the location of your NYC files. I installed in C:\NYX\Data\

Note: There is a double dash — in front of config.    Two – – close together

If Sentinel is running correctly it should look like this. Anything different and you need to check the shortcut parameters

NYX Sentinel
NYX Sentinel – Click to Enlarge