ChainCoin Masternode Setup Guide
This guide will show you how to convert your local wallet (Windows, but Mac is simalar) in to a remote controller for your VPS masternodes if you already have a masternode running on a VPS with the 1000chc in it.
Transferring Your CHC From the VPS To Your Local Waller on Your PC
Log in into your VPS masternode with PuTTY (or any ssh program) stop the server typing chaincoind stop
and set masternode=0 in the conf file in the .chaincoin directory so type cd .chaincoin
then nano chaincoin.conf
and set masternode=0 ctrl x to exit and y to save. Now you can send all your coins to your local wallet.
chaincoind sendtoaddress <YOURLOCALWALLETADDRESS> <AMOUNT>
consider there is a small fee to transfer the coins it should be about 0.0003CHC
If you run into this problem, if not just ignore and go to the next step
chaincoind sendtoaddress CY8A9opahc3MxxxxnAxnXFxxxF86UnQB 1000
error: {"code":-5,"message":"Invalid Chaincoin address"}
Make sure you have pulled the latest code from the github repository, this has been fixed.
Setting up the Control Wallet
If you already have a local wallet on your desktop go to step 2
First Go to the chaincoin website and download the Windows Wallet
http://www.chaincoin.org/chaincoin-wallet/
Download and install the wallet and wait for your blockchain to sync.
For Each MasterNode you want to create a receiving address, if you are setting up 2 masternode you would create 2 receiving addresses. Do this by going to (in your local wallet) File -> Receiving Addresses New in the wallet Use a meanginful label name to identify your masternodes for example MN1, MN2.
And send to yorself, from the same wallet, 1000CHC to each new Receiving Address, like:
1000CHC to MN1
1000CHC to MN2
and so on to as many as masternode you have.For each MasterNode create a masternode key. Do this by going to the RPC console in the wallet Tools -> Debug Console and type in
masternode genkey
which should give you a long string. Keep note of each of these keys as we will be using this later. Remeber you need to do this for each MasterNode as each masternode will need it's own unique key.
You whould now have one receiving address and one masternode key Per MasterNode*. Note these as we will place them in the masternode.conf file explained below.
Setting up the masternode.conf File
Please note where you set the default directory upon intial startup of the wallet.
Navigate to the chaincoin directory:
Default directory is: %AppData%\Chaincoin
You should see a backup folder, block, chainstate, and chaincoin.conf
In your ChainCoin Directory create a file called masternode.conf, if one does not exist. You can create this file by opening up notepad and saving a blank file in the chaincoin directory as masternode.conf. The masternode.conf file is where we will put information on each masternode in this format:
Doc for masternode.conf: https://github.com/chaincoin/chaincoin/blob/master/doc/masternode_conf.md
Masternode config file
<MASTERNODE_ALIAS> <SERVER_IP_ADDRESS>:11994 <MASTERNODE_PRIVATE_KEY> <TX_OUTPUT_ID> <TX_10K_OUTPUT_INDEX>
You can easily get <TX_OUTPUT_ID> and <TX_10K_OUTPUT_INDEX> typing masternode outputs
in your debug console from your local wallet in Windows
When you type masternode outputs
you will see something like:
"1654654sdfds6f4sd6f1ds1f564dfd5s1fd4s5f4df132d1fs4df5fg4fd56fg456fdgf1" : "0",
"123qwertyuiop4314342dfghjk343f4hjk32432ghj4k2134gh1j24vjhkj234yo3oiir" : "0"
those are your: "<TX_OUTPUT_ID>" : "<TX_10K_OUTPUT_INDEX> "
each line is a potential masternode
Lets define the parameters for the format:
Alias: The alias portion is just a name for ease of use you want to name your masternode for exampel MN1
IP/Port: This will be the IP address of your VPS server and the port will be 11994
Masternode Private Key*: This is a unique key that we will generate for each masternode by using the command masternode genkey in the Tools -> Debug Console screen located in the wallet.
TXID Collateral: This is the transaction id for the 1,000 CHC you sent to the wallet address
TX Output Index: This will either be a 0 or 1 and point to the 1,000 CHC on the transaction.
- Setup the masternode.conf file we just created using the information above for each masternode. It should look like this:
- Remember the IP address will be the VPS IP address we setup below
Save the masternode.conf file and restart your wallet.
Every time you change chaincoin.conf or masternode.conf you need to restart the wallet for the changes to take effect.
Now tyiping masternode list-conf
in debug console yous hould see something like:
{
"masternode" : {
"alias" : "MN1",
"address" : "IPMN1:11994",
"privateKey" : "<MASTERNODE1_PRIVATE_KEY>",
"txHash" : "<MN1TX_OUTPUT_ID>",
"outputIndex" : "<MN1TX_10K_OUTPUT_INDEX>",
"donationAddress" : "",
"donationPercent" : ""
},
"masternode" : {
"alias" : "MN2",
"address" : "IPMN2:11994",
"privateKey" : "<MASTERNODE2_PRIVATE_KEY>",
"txHash" : "<MN2TX_OUTPUT_ID>",
"outputIndex" : "<MN2TX_10K_OUTPUT_INDEX>",
"donationAddress" : "",
"donationPercent" : ""
}
}
If you dont see this check again steps on "Setting up the masternode.conf File"
Changing chaincoin.conf on our Local Wallet (Windows)
- Change your cahincoin.conf by going to Tools -> Open Configuration File and add the following:
mnconflock=0
mnconflock=0
Save the chaincoin.conf file and restart your wallet.
Changing chaincoin.conf on our VPS (Virtual Private Server)
Log in into your VPS masternode with PuTTY (or any ssh program)
- Go to your .cahincoin directory
cd .chaincoin
- Stop your masternode if it's running
chaincoind masternode stop
- Stop chaincoin server
chaincoind stop
- Edit your chaincoin.conf file
nano chaincoin.conf
your config file should look like the following:
rpcuser=xxxx
rpcpassword=xxx
rpcallowip=127.0.0.1
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
rpcport=11995
externalip=YOUR_MN_IP
bind=YOUR_MN_IP
masternode=1
masternodeprivkey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
masternodeaddr=YOUR_MN_IP:11994
Choose username and password and replace xxxxxx, only letters and numbers, no symbols like £"$%&/
Run chaincoind type
chaoncoind
Verify that is running and it's synced by typing
chaincoind getinfo
you should get something like:"version" : 90205,
"protocolversion" : 70002,
"walletversion" : 61000,
"balance" : 0,
"darksend_balance" : 0.00000000,
"blocks" : 1195354,
"timeoffset" : -1,
"connections" : 8,
"proxy" : "",
"difficulty" : 433.30044681,
"testnet" : false,
"keypoololdest" : 1499604612,
"keypoolsize" : 1001,
"unlocked_until" : 0,
"paytxfee" : 0.00000000,
"relayfee" : 0.00001000,
"errors" : ""
Note your balance on the VPS should be 0
and "blocks" as today 02/aug/2017 about 1195354
Starting your new MasterNode
Go to your Windows wallet and open the RPC console by going to Tools -> Debug Console
Enter the following command into the RPC console masternode start-many (wallet password) If your wallet is encrypted which I recommend you do then you would put your password in place of (wallet password).
You should see a message in the console:
“overall” : “Successfully started masternode, failed to start 0, total 1”,
“detail” :
“status” :
“alias” : “masternode1”,
“result” : “successful”
Now the last step is consider a small donation :) even 1CHC is appreciated. Thanks!
Cdx5Kv9XT7y5bQEhqQ9p3NnZYo1QeK42Ag
Checking on your MasterNode
You can check if your masternode is running by opening the RPC console by going to Tools -> Debug Console and entering
masternode list status IPAddress
to see how long your masternode has been active
masternode list activeseconds YOURIP
to get a full list of masternodes enter:
masternode list
to stop your masternode
masternode stop-many
OR
masternode stop-alias mnAlias
to see count of masternodes
masternode count
to start a specific masternode use
masternode start-alias mnAlias
Acknowledgments
Thanks to @usncrypto for providing some of the content to this guide:
https://steemit.com/@usncrypto
thanks for
You'll have to wait your turn, sir.
Does the controller wallet need to be online 24x7?
No, absolutely not. It's like a remote that you use to switch your masternodes on and off, once it's on you can shut down your wallet and your computer.
Thank you for taking the time to make this guide for our community. Much appreciated. Please don't forget to join the official slack of http://chaincoin.org if you haven't done so already. Here is their invite link: https://chainteam.herokuapp.com/
Of ourse I'm already in the official slack group :)
I'm trying to do the first step by transferring 1000chc from my vps to my local wallet but getting error (error: {"code":-4,"message":"Insufficient funds."}). Can you help me
Consider transaction fee as specified in the guide
If you still have problems try putting masternode=0 in the conf file before sending.
To do so you have to chaincoind stop, modify conf file restart chaincoind --daemon and try to send again
i tried sending 2 chc extra making it 1002 chc but still i cant transfer it. I run my masternode since last week and not yet receive any payout.
you can check your balance with: chaincoind getinfo
Thank you so much, this is exactly what I was looking for!! Question: when sending the coins from the masternode on the VPS to the local wallet, does it not have to be exactly 1000 coins again in order to maintain it as a masternode? (I have more now that it has been running a couple of weeks, but you stated to send "all the coins" to the local wallet).
Thanks again!
Julie
Well I did get as far as sending my 1016 coins from the remote masternode wallet to the local wallet, but now running into an error code about "unable to locate enough Darksend funds" when I attempt to send the 1000 chc to the newly created masternode wallet ... Any insights on what the problem might be?
Thanks again:)
When you are in the Send tab of your wallet, in the bottom right corner does you see your balance? If not go to Inputs on the same tab and select all the inputs apart from the 1000 inputs if you already have one.
Thanks. It's good for me
Thanks. It's good for me
I will use for this masternodes coin
ttps://masternodes.online/currencies/VRT/
thanks