OK, here is how to setup multiple DarkNet masternodes. I am going to use RPis as the masternodes in this example,
with a wallet on your laptop acting as the controller, I am also going to write this for 2 masternodes,
but the directions could be expanded to as many as you want. The concept could also be changed around as
you please using VPSs or other computers as your masternodes, as well as something else for the controller.
If using a VPS, or darknetd as opposed to the Qt wallet, all of the commands that are to be entered in the
console should be entered on the command line preceded by "./darknet-cli",for example "./darknet-cli masternode
genkey". This should go without saying, but don't enter the quotation marks when entering commands.
Step 1: From the very begining, on your laptop in the console enter "masternode genkey" twice, and enter
"getaccountaddress MN1" and "getaccountaddress MN2", the MN1 and MN2 could be substituted with any name
you would like to call the masternode addresses.
Step 2: Send 10k DNET to each of the addresses generated in step 1, making sure to send exactly 10k, in
one transaction to each. Now, execute "masternode outputs" in the console of your laptop wallets.
Step 3: Open the masternode.conf file in the data directory of your laptop's wallet and edit it. In one
line for each masternode follow this format: ALIAS IP:51472 MASTERNODEPRIVKEY TRANSACTIONHASH INDEX. The
ALIAS can be anything you want it to be, but for simplicities sake it may be best to use the name you used
for the wallet addresses, MN1 and MN2 in this example. The IP is the IP where the masternode wallet can be
found. the MASTERNODEPRIVKEY is the output from the command "masternode genkey" you entered earlier.
The TRANSACTIONHASH and INDEX are the output you received when you executed "masternode outputs" earlier.
Step 4: Open the darknet.conf file in the data directory of the controller wallet, again, on the laptop in
this example, Modify the contents to match this:
rpcuser=long random username
rpcpassword=longer random password
rpcallowip=127.0.0.1
listen=0
server=1
daemon=1
logtimestamps=1
maxconnections=256
Step 5: Close the wallet and restart it.
Step 6: Open the darknet.conf file in the data directory of one of your masternode wallets, on a RPi in this
example. modify the contents of the file to look like this:
rpcuser=long random username
rpcpassword=longer random password
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
masternode=1
masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Replacing the username and password with your own, and replacing the Xs with the masternode private key that
corresponds to the masternode alias you would like for this masternode.
Step 7: Close and restart that wallet.
Step 8: repeat steps 5 and 6 for the other masternode wallet, the other RPi in this example.
Final step: Now, both of your masternodes are setup, you just need to start them, you will do this with the
controlling wallet on your laptop. Open the console of the controlling wallet and enter "masternode start-many"
you should get an output something like this:
{
"overall" : "Successfully started 2 masternodes, failed to start 0, total 2",
"detail" : {
"status" : {
"alias" : "mn1",
"result" : "successful"
},
"status" : {
"alias" : "mn2",
"result" : "successful"
}
}
When setting up a second MN you just continue to add within the DNET conf file?
rpcuser=long random username
rpcpassword=longer random password
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
masternode=1
masternodeprivkey=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Replacing the username and password with your own, and replacing the Xs with the masternode private key that
corresponds to the masternode alias you would like for this masternode.
And if this is #2 for me then i change masternode=2 and use same privkey?