Skip to content

Install masternode

bomlinh edited this page Oct 14, 2019 · 2 revisions

First the basic requirements:

• 100,000 CMC (may need a fraction of a CMC more to cover for the transaction fee)

• A main computer (Your everyday computer) – This will run the control wallet, hold your collateral 100,000 CMC and can be not running without affecting the masternode.

• Masternode Server (VPS – The computer/node that will be on 24/7)

• A unique IP address for your VPS / Remote wallet (For security reasons, you’re are going to need a different IP for each masternode you plan to host)

The basic reasoning for these requirements is that, you get to keep your CMC in your local wallet and host your masternode remotely, securely.

  • Configuration steps

1.Using the control wallet, enter the debug console (Tools > Debug console) and type the following command: createmasternodekey (This will be the masternode’s privkey. We’ll use this later…)

2.Using the control wallet still, enter the following command: getaccountaddress

3.Still in the control wallet, send 100,000 CMC to the address you generated in step 2 (Be 100% sure that you entered the address correctly. Make sure this is exactly 100,000 CMC; No less, no more.) – Be absolutely 100% sure that this is copied correctly. And then check it again. We cannot help you, if you send 100,000 CMC to an incorrect address.

4.After the transaction success, still in the control wallet, enter the command into the console: getmasternodeoutputs (This gets the proof of transaction of sending 100,000)

5.Still on the main computer, we need to edit the masternode.conf. (Tools > Open Masternode Configuration File) (or you can find the file in the COMMA data directory, by default in Windows it’ll be %Appdata%/COMMA or Linux ~/.comma

Once you have the masternode.conf file open in a text editor, add the following line to it: <Name of Masternode(Use the name you entered earlier for simplicity)> :14520<The result of Step 1> <Result of Step 4> <The number after the long line in Step 4>

Substitute it with your own values and without the string “<>” Next, we have to configure the VPS wallet

6.Install the latest version of the COMMA wallet onto your masternode. The latest version can be found on the official website or github. Place your downloaded file in ~/comma folder, we will have ~/comma/bin folder. Change directory to your installed folder cd ~/comma/bin

Note: If this is the first time running the wallet in the VPS, you’ll need to attempt to start the wallet ./commad this will place the config files in your ~/.commad data directory press CTRL+C to exit / stop the wallet then continue to next step Configuration Cont. 7.Now on the masternodes, find the COMMA data directory here.(Linux: ~/.comma) cd ~/.comma

8.Open the comma.conf by typing vi comma.conf then press i to go into insert mode and make the config look like this: rpcuser=long random username rpcpassword=longer random password rpcallowip=127.0.0.1 server=1 daemon=1 logtimestamps=1 maxconnections=256 masternode=1 externalip=your unique public ip address masternodeprivkey=Result of Step 1 Make sure to replace rpcuser and rpcpassword with your own. 9. to exit the editor press esc then :wq! then press enter 10. Now, you need to finally start these things in this order – Start the daemon client in the VPS. First go back to your installed wallet directory, cd ~/comma/bin and then start the wallet using ./commad

– From the Control wallet debug console startmasternode alias false

where is the name of your masternode alias (without brackets)

The following should appear: “overall” : “Successfully started 1 masternodes, failed to start 0, total 1”, “detail” : [ { “alias” : “”, “result” : “successful”, “error” : “” } ]

– Back in the VPS (remote wallet), start the masternode ./comma-cli startmasternode local false

– A message “masternode successfully started” should appear

  1. Use the following command to check status:

./comma-cli getmasternodestatus

You should see something like:

{ “txhash” : “334545645643534534324238908f36ff4456454dfffff51311”, “outputidx” : 0, “netaddr” : “45.11.111.111:14520”, “addr” : “D6fujc45645645445645R7TiCwexx1LA1”, “status” : 4, “message” : “Masternode successfully started” }

Congratulations! You have successfully created your masternode! Now the masternode setup is complete!

Clone this wiki locally
You can’t perform that action at this time.