How to setup a dedicated Mintcoin node
What are Mintcoin nodes?
Mintcoin consists of a Peer 2 Peer network, where each client downloads portions of the blockchain from other nodes. If you have some spare bandwidth, setting up a dedicated node running 7/24 would speed up initial blockchain sync time of new users, promoting a healthy network for the whole community.
How Do I Create a Dedicated Mintcoin Node?
The easiest is to use an Ubuntu distribution, although any unix or a windows would do.
Requirements
A dedicated node would consume around 300mb of RAM and some CPU. A VPS (such as digitalocean.com’s 5$/month plans) would be sufficient.
Installation
1. Set up an Ubuntu VPS.
If you’re in doubt, you can choose Ubuntu 12.04 LTS or Ubuntu 14.04 LTS for this tutorial. If you don’t use Ubuntu, you will have to compile mintcoin manually.
If you’re using Digital Ocean’s minimum priced plan, the 512mb ram would be risky. Create an additional swap file of 512mb using the following tutorial: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-12-04 (In the tutorial use “count=512k” instead of “count=256k” for a 512mb swap file)
2. Install mintcoind from repositories:
[email protected]:~# add-apt-repository ppa:keremhd/mintcoin-unofficial
[email protected]:~# apt-get update
[email protected]:~# apt-get install mintcoind
3. Create a user to run the wallet with.
You don’t have to provide a password (If not using a password, you can always connect to your server as root and use step#3 to switch to the new account)
[email protected]:~# adduser wallet
4. Switch to wallet user:
[email protected]:~# su wallet
[email protected]:/root# cd
[email protected]:~#
5. Create Mintcoin directory and config file.
Use a password consisting of random letters, you will never have to remember it again.
Max connections is the maximum number of simultaneous connections your node would serve if required. If you have CPU or bandwidth issues, you can use a lower number.
[email protected]:~# mkdir .MintCoin
[email protected]:~# echo “rpcuser=bitcoinrpc” >> .MintCoin/MintCoin.conf
[email protected]:~# echo “rpcpassword=XXXXXX” >> .MintCoin/MintCoin.conf
[email protected]:~# echo “maxconnections=512″ >> .MintCoin/MintCoin.conf
6. Run the daemon:
[email protected]:~# mintcoind -daemon
7. It will take a while to sync, watch the block count :
[email protected]:~# mintcoind getinfo
{
(removed)
“blocks” : 625598,
“connections” : 114,
(removed)
}
8. If you want to see list of connected nodes, you can use getpeerinfo command:
[email protected]:~# mintcoind getpeerinfo
9. If you want to stop the daemon, you can use stop command:
[email protected]:~# mintcoind stop
That’s it!
Checking node’s health
You should connect to your server once in a while to see if everything’s ok.
1. Connect to your server as root (Or connect as wallet user if you gave it a password)
2. Switch to wallet user:
[email protected]:~# su wallet
[email protected]:/root# cd
[email protected]:~#
3. Check if node is running:
[email protected]:~# ps x
PID TTY STAT TIME COMMAND
5369 ? Ds 0:14 mintcoind -daemon
4. Check node health:
[email protected]:~# mintcoind getinfo
5. Check connected peers:
[email protected]:~# mintcoind getpeerinfo
The community appreciates your commitment!
Leave a Reply
Want to join the discussion?Feel free to contribute!