How to : Setup your masternode

In this guide you will learn how to setup a single or multiples masternode. We will use TransferCoin to accomplish our guide since they help us in the process.

You may need to forward all your port on your router for your masternode(s) to work properly.

To build your Wallet on Linux, consult this guide

Content


Terminology


Controller Wallet : A wallet with all of your TX that can remotely start masternodes. This wallet does not have to be online after the masternodes have started.

Remote Masternode : This is a masternode with a new empty wallet. It’s used only to process transactions and act as a masternode. All funds generated by this wallet are send the controller wallet.

General Setup


From the Controller Wallet Setup

  1. You will need to send a 10k TX transaction to a new address on the same controller wallet for each node, to do that follow these steps
    1. Create a new address – in console type “getnewaddress”. Go to “Receive” tab, then right click the new address to give it a suitable label for your first nodetransfer-wallet1
    2. Enable “Coin Control” features in Settings. Settings > Options > Check Display Coin Control Features
    3. Goto “Receive” Tab, right click and copy the address you createdtransfer-wallet2
    4. Goto “Send” tab, click inputs, check the address you want to send the 10k from, making sure it’s not a previously used 10k for a node. When it’s done, click Ok
    5. Paste in the copied address from step 3 into the Pay to field and type 10000 into amount and send it
  2. Create/edit transfer.conf
    • For a single masternode, insert those lines in your transfer.conf. Add your IP before the 17170 port and copy your Masternode private key.transfer-wallet3
    • For multiple masternode, do not put masternode=1 in transfer.conf this will disable the use of masternode.conf. Use this :transfer-wallet4
  3. Create/edit masternode.conf (If you have multiple masternode only!!)
    1. In the base directory where transfer.conf is located, create a text file called masternode.conf. The layout of masternode.conf is as follows :
      Alias IP:Port PrivKey OutputsHash OutputsIndexEach item has 1 space between. Each line in the masternode.conf is a new masternode

      1. The Alias is any name you choose. Make it easy and put it to the same label as the address you assigned your masternode so you know where your TX is being mined from.
      2. IP:Port is your external IP and the port you designate for the masternode’s remote wallet.
      3. PrivKey is created by typing “masternode genkey” in your master wallet’s console. Each masternode will have a unique key.
      4. OutputsHash : Go to your master wallet and type “masternode outputs”. This shows transactions that are eligible to become masternodes. The first set of Hex is your OutputsHash
      5. OutputsIndex : This is the number that appears after the outputshash. It’s either a 1 or a 0.transfer-wallet5transfer-wallet6

Remote Masternode Setup


  1.  Create multiple wallet and data directories
    1. Transfer Wallet creates its data directory in
      C:\Users\”usernamehere”\AppData\Roaming\Transfer (Windows)
      /home/<user>/.transfer (Linux)
      You will need a clean install of an updated blockchain on an unused wallet.
    2. Delete the wallet.dat file (make sure this one is unused) and copy all of the contents of this directory.
    3. Start pasting those contents into directories for each masternode. EX: Roaming\Transfer1, Roaming\Transfer2 etc. or .transfer, .transfer2transfer-wallet7
  2. Edit Transfer.conf for each directory
    1. Note that the rpcport may need to be different for each wallet tootransfer-wallet8
  3. Create Bat file to start the daemons (Windows Only)
    1. Right-click on the desktop and create a text file. Rename it to “your really creative name”.bat make sure the extension is correct to make it executable.
    2. Right-click the file and click “edit”. This should open your default text editor, usually notepad.exe.
    3. Type in the location of the daemon and the corresponding data directory for each node. Example on next slide.
    4. Example Bat file. Each C:\ and -datadir are one line.C:\Users\grego\AppData\Roaming\Transfer1\transferd.exe -datadir=C:\Users\grego\AppData\Roaming\Transfer1C:\Users\grego\AppData\Roaming\Transfer2\transferd.exe -datadir=C:\Users\grego\AppData\Roaming\Transfer2
    5. Double click it to run your daemons. It will sit on the cmd window when running. If you have issues, add a new line with “pause” on it to stop it from closing on errors.
  4. Start multiple GUI (Linux)
    1. In terminal, type the following command

cd Transfercoin
./transfer-qt //This will start your first wallet (usually controller)
./transfer-qt –datadir=../.transfer2 //This will start the second wallet. Restart this step as many time you need by changing the 2 by it’s following. Ex : ../.transfer2, ../.transfer3, etc.

Credits :
Thanks to Lethax for this guide
TX donation to him: TeSkRCz2YEBAXiuxuVDkbW5QxB1x9n6Lyn
BTC donation : 1G2c2yuuERvhPfjrgCwcXQrwfujA1n88uQ

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *