This guide is for a setting up a TWINS masternode on a Ubuntu 16.04/18.04 64bit server (VPS) and will be controlled from the wallet on your local computer (Local wallet). The wallet on the the VPS will be referred to as the Remote wallet.
A main computer (Your personal computer) — This will run the Local wallet, hold your collateral 1,000,000 TWINS and can be turned on and off without affecting the masternode.
Masternode Server running Ubuntu 16.04/18.04 (VPS — The computer that will be on 24/7 and runs the Remote wallet ). Minimum required specs for VPS: 1GB RAM, 20 GB drive, and one static IPV4 Address.
Now in the Local wallet, enter the debug console by going to (Tools > Debug console) and type the following command:
Now in the Local wallet still, enter the following command on the debug console:
Send 1,000,000 TWINS to the address generated in the previous step. When you press the Send button, the wallet will calculate the proper transaction fee. Click Yes in the dialog box that follows and proceed to the next step.
Using your local wallet, wait for 16 confirmations, and then enter the debug console (toolbar: Tools > Debug Console) and type the following command:
In the local wallet’s toolbar, click Tools > Open Masternode Configuration File to open masternode.conf and add the following line with appropriate info:
<Name of Masternode> <Unique IP address of the vps>:37817 <Masternode Private Key> <Transaction ID> <Output Index>
Save the file. For reference see sample format below and the screenshots.
masternode.conf#Example as per above format:mn1 127.0.0.2:37817 93HaYBVUCYjEMeeH1Y4sBGLALQZE1Yc1K64xiqgX37tGBDQL8Xg 2bcd3c84c84f87eaa86e4e56834c92927a07f9e18718810b92e0d0324456a67c 0
To install the wallet first you will log into your VPS using your SSH client. After logging in, type the following commands into your VPS terminal.
Go to your home directory by typing:
From your home directory, download the latest version from the TWINS GitHub repository by typing:
Unzip and extract the downloaded file by using the following command:
tar -zxvf twins-184.108.40.206-MN-x86_64-linux-gnu.tar.gz
If this is the first time running the wallet in the VPS, you’ll need to attempt to start the wallet
./twinsd .This will create the twins.conf config files in your ~/.twins data directory.
CTRL+C to exit / stop the wallet then continue to the next step.
Now again come back to the home directory by typing:
Now go to the Twins data directory by typing:
Open the twins.conf by typing:
Then press “ i ” button to go into insert mode and make the config look like this:
twins.confrpcuser=long random usernamerpcpassword=longer random passwordrpcallowip=127.0.0.1server=1daemon=1logtimestamps=1maxconnections=256masternode=1externalip=your unique public ip addressmasternodeprivkey= Enter the key we got by running masternode genkey commandduring local wallet installation
To exit the editor press
:wq! then press
Now, you need to finally start these things in this order
Starting the daemon client in the VPS (Remote wallet). In your home directory you can start the wallet daemon by typing:
Now to activate your masternode in your Local wallet, enter the debug console (toolbar: Tools > Debug Console) and type the following command:
startmasternode alias false <mymnalias>
Where <mymnalias> 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” : “<mymnalias>”,
“result” : “successful”,
“error” : “”
Now go back to the VPS (remote wallet), start the masternode by:
./twins-cli startmasternode local false
A message “masternode successfully started” should appear.
Use the following command to check status:
./twins-cli masternode status
You should see something like:
“txhash” : “334545645643534534324238908f36ff4456454dfffff51311”,
“outputidx” : 0,
“netaddr” : “220.127.116.11:37817”,
“addr” : “WmXhHCV6PjXjxJdSXPeC8e4PrY8qTQMBFg”,
“status” : 4,
“message” : “Masternode successfully started”
To do so, copy your masternode wallet address from your terminal window by selecting it with your mouse (
WmXhHCV6PjXjxJdSXPeC8e4PrY8qTQMBFg in the above example), visit the masternode section of the TWINS explorer, and paste it in the lower right search box to find your masternode.
Your masternode status should appear as "ACTIVE".
Thats about it. Congratulations! You have successfully created your masternode.