Masternode Guide: Linux VPS Windows Cold Wallet (Recommended) - friendshipCoin/friendshipcoin-core GitHub Wiki

Setting up a FriendshipCoin Masternode on Ubuntu 16.04 with Windows Cold Wallet

Login to your VPS as root

It is generally advised or required to change the root password on your new vps account from the one generated by your vps setup.

Create a new user account:

adduser masternode
# input password
gpasswd -a masternode sudo
su - masternode

If you are upgrading your masternode from an older version of FriendshipCoin make sure you stop the current running daemon friendshipcoind stop

Download and configure

wget https://github.com/friendshipCoin/friendshipcoin-core/releases/download/0.1.0/friendshipcoin-0.1.0-ubuntu.tar.gz
tar -zxvf friendshipcoin-0.1.0-ubuntu.tar.gz
cd friendshipcoin-0.1.0
chmod +x dependencies.sh && sudo ./dependencies.sh
sudo cp -a friendshipcoind /usr/local/bin/
sudo cp -a friendshipcoin-cli /usr/local/bin
sudo chmod 755 /usr/local/bin/friendshipcoind
sudo chmod 755 /usr/local/bin/friendshipcoin-cli
sudo chown -R masternode:masternode ~/.friendshipcoin

Run friendshipcoind

friendshipcoind

You should see 'FriendshipCoin server starting', now press enter to return to the shell.

Wait for your wallet to sync with latest block on explorer:

friendshipcoin-cli getinfo

"blocks" line should match latest block on https://explore.friendshipcoin.com

From Windows generate the address for the masternode

Receive -> 'New Receive Address' Label it 'masternode'

Send masternode collateral to the resulting address (exactly 14466 FSC)

If sending from an exchange such as Graviex, send 14467 coins from the exchange to another address on your wallet, and then send 14466 coins to the new masternode address.

Wait for 1 confirmation, you can see this in the Transactions tab.

Generate the masternode private key and save the output

Help -> 'Debug Window'

masternode genkey

Get masternode transaction and index and save the output

masternode outputs

Here is an example:

{ "60835a7d867d335434925c32f38902268e131e99a5821557d3e77f8ca3829fd8" : "0"}

Close the wallet

Edit masternode.conf with your masternode information

Go to C:\Users\<your username>\.friendshipcoin

Create masternode.conf with Notepad

Add this line:

<masternode alias> <masternode IP>:58008 <masternode private key> <masternode transaction> <MN transaction
index>

Example:

MN01 54.134.163.173:58008 88kPFWmNAdNTcXuHRRWDCUXGEnQkwZvddsrDAANWtz662nCAotr 60835a7d867d335434925c32f38902268e131e99a5821557d3e77f8ca3829fd8 0

It should all be one line, and masternode alias can be whatever you want.

Save and close.

From Linux VPS configure the masternode

Stop the friendshipcoin wallet

friendshipcoin-cli stop

Edit friendship.conf

nano ~/.friendshipcoin/friendshipcoin.conf
# add these lines:  
masternode=1
masternodeprivkey=<your masternode private key>
# save (ctrl + o) and exit (ctrl + x)

Start friendshipcoin

friendshipcoind

From Windows enable the masternode

Run the FriendshipCoin wallet

Start the masternode

Help -> Debug Window

masternode start-many

You should see the following output

Command: masternode start-many
 {
 "overall": "Successfully started 1 masternodes, failed to start 0, total 1",
 "detail": {
 "status": {
 "alias": "mn01",
 "result": "succesful"
 }
}
}

Verify your masternode is working properly

Use the command masternode list and find your masternode with the transaction ID.

You are set!

Setting up additional masternodes on the same wallet instance

You can set up more masternodes and keep all the collateral in one windows wallet. All you need to do is follow the guide again on a new VPS. In the masternode.conf file, just add an additional line for the new masternode.

Please note that currently, the windows wallet does NOT lock masternode collateral - the team is working on a fix. This means that if you try to send 14466 coins for a new masternode, it might break your previous one. As a workaround, you should send 14466 coins from another wallet to your windows wallet.

Securing your VPS (Optional but recommended)

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ufw
sudo ufw allow ssh
sudo ufw limit ssh/tcp
sudo ufw allow 58008/tcp
sudo ufw allow 58009/tcp
sudo ufw default allow outgoing
sudo ufw enable

FAQ

Q: My VPS masternode status shows notCapableReason" : "Could not find suitable coins!, what do I do?

A: Nothing, this is expected behavior when running a Linux VPS and Windows Cold Wallet.

Q: My Windows wallet masternode status shows "service": "[::]:0", "status": 0,, what do I do?

A: Nothing, this is also expected behavior.

Q: How do I know my masternode is actually working?

A: Look for your transaction id in masternode list - if it's there and labled 'ENABLED' you are set. If it's not there, wait up to 8 hours for the list to update.

Q: All my masternode rewards are displayed as GENERATE 0 in windows wallet, what do I do?

A: This is a display bug the team is working on resolving.