This guide will teach you how to setup multiple BTX masternodes and monitor them on on a single wallet (controller).
Now this guide has specific instructions for creating two masternodes and control them with a masternode controller wallet. The guide can easily be scaled up for creating more than two masternodes or scaled down to only one. In all cases, it is more comfortable to use a separate wallet to observe the masternode payments since the masternode wallet you would normally want to place it on a server that is left untouched while running 24/7 -either a local (at home) server or a remote (cloud-based) server.
The steps are pretty clear and if you follow them currectly you will end up just fine.
Note: In some steps I'm only providing images to the first masternode wallet, just to make the thread shorter since the second one would have the same steps repeated for it with small changes if implied.
Now let's begin:
- Start by creating a folder and call it something like "Masternodes".
- Inside it, create the following folders:
- Copy the QT client into both "BTX-MN01" and "BTX-MN02".
- Go to "WindowsDir:\Users\Username\AppData\Roaming\BTX" and copy everything inside that directory, then paste it into both "BTX-MN01-Data" and "BTX-MN02-Data".
- Delete "wallet.dat" from both "BTX-MN01-Data" and "BTX-MN02-Data".
- Create "BTX-MN-Controler" and "BTX-MN-Controler-Data", then repeat the same previous steps to those two folders as in the following images:
Note: Each masternode wallet has a different .conf file setting in terms of the port and rpc port and the masternode IP address and private key used. While the .conf file would be the same as the other two, only that it has the three masternode-related lines deleted. The following .conf files are for MN01, MN02, and the controller (in order). Leave the three masternode lines of MN01 and MN02 deleted for now as you don't need them yet.
Example for MN01:
maxconnections=100
rpcuser=yourusername
rpcpassword=yourpassword
rpcallowip=*
port=8515
rpcport=29282
staking=0
gen=0
listen=0
server=1
daemon=1
reservebalance=9999999
logtimestamps=0
masternodeaddr= SERVER IP ADDRESS:SERVER PORT
masternode=1
masternodeprivkey= YOUR PRIVATE KEY
addnode=107.170.57.24
addnode=85.25.214.214:28280
addnode=85.214.95.177:5515
addnode=85.214.95.177:5516
addnode=85.214.95.177:6517
addnode=85.214.95.177:6518
- Now it's time to create shortcuts for the wallets. Link the first shortcut to the qt wallet you pasted into "BTX-MN01", the second shortcut to the qt wallet inside "BTX-MN02", and the third to the one inside "BTX-MN-Controler".
- Now we need to append the following line to the data directory and the .conf file path inside the target of all three shortcuts like
"-datadir=dir:\..\Masternodes\BTX-xxxx-Data -conf=dir:\..\Masternodes\BTX-xxxx-Data\bitcointx.conf".
Example: For the first masternode it would have the target:
C:\Users\DV6\Desktop\Masternodes\BTX-MN01\bitcointx-qt.exe -datadir=C:\Users\DV6\Desktop\Masternodes\BTX-MN01-Data -conf=C:\Users\DV6\Desktop\Masternodes\BTX-MN01-Data\bitcointx.conf
- Now if you've done everything currently you'll be able to start all three wallets from their shortcuts and you can notice that each wallet has it's own unique address. You should only start the wallets from their shortcuts.
- Now it's time to setup the masternode addresses (the addresses that will each be used to store the 250k BTX for proof of reserve).
You'll need to do this for each of the three wallets.
Back up the wallet by copying it and renaming the copy to something relative like "wallet-notEncrypted.dat"
Go to Help->Debug window->Console. Then type "masternode genkey" to generate the masternode private key. Go to the masternode's data directory and edit the conf file to have "masternodeprivkey= The key you got".
- For each of the two masternode wallets you'll need to:
Go back to the console and type "getaccountaddress 0" to generate the public key for the masternode that you'll need to send the 250k BTX to.
Write "dumpprivkey" followed by the 0 public address for each of the two wallets that was generated from the previous step. Then copy the private key that you get and import it to the masternode controller by typing "importprivkey" in the controller wallet's console followed by each of the two private keys that you got one at a time.
- Now you need to send 250k BTX to each of the two public keys for the two masternode hosting wallets "BTX-MN01" and "BTX-MN02". And wait for 15 confirmations for each transaction. Then type "masternode start" on each of the the wallets' consoles. After the two masternodes are successfully started you can close the two wallets and place them on a server of your choosing, or you can run the server on the same PC if you'd like. The computer that you need to use as a server needs to have port-forwarding enabled to work as a server, and can either be local or remote.
- In the masternode controller console you can now monitor all of your masternodes and receive all their profits.