At the beginning need to rent a vps/vds server, for a masternode the configuration : ( 1 CPU 1 GHz / 512 mb RAM / 7 GB diskspace ) will be enough.
You also need to have 20 000 coins on your wallet balance.
I’ll make it clear in advance for understanding: don’t worry, the coins will always be in your local wallet under your total control ! , with the condition that you will not move it from a specific address, but details about this are written below…
Then need to install *Ubuntu 18.04, if this cannot be done automatically using the dashboard in the hosting account, then ask the hosting administrator to install this OS version
(*Also possible to use versions Ubuntu 19.04, 20.04, for this better use swamp-v2.0.0.3-ubuntu-20.04-64-bit version of program. About install/setup written below )
after installation the hosting will give you the server’s IP address, login and password.
Next step is enter to the server using any SSH-client , recommend PuTTY
Original link GitHub
https://github.com/swampcoin/swamp/blob/master/doc/masternode-setup.md
Installing Dependeincies for swamp Coin on Your VPS
Before you can run a masternode you have to be able to run the Swamp Coin daemon/wallet. This requires the installation of several dependenicies. To install these run the following commands on your VPS:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev
sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
sudo apt-get install libqrencode4
Preparing Collateral in Local Wallet
Create an address in your local wallet by:
a. QT/GUI Wallet: selecting the Recieve tab, entering a label (name) and pressing the “Request Payment” button
b. Command line: entering command ./swamp-cli getnewaddress
The address will be presented back to you, copy it for use in the next steps
Send your local wallet 20000 SWAMP by:
a. QT/GUI Wallet: selecting the Send tab, entering the address obtained from step 1 in the “Pay To:” field and entering “20000” in the “Amount” field. Make sure the “Subtract fee from amount” check box is NOT checked. You will see the transaction on the screen in the Overview and Transactions tab
b. Command line: entering command ./swamp-cli sendtoaddress “address from step 1” 20000. The system will give you the TransID as confirmation
Now wait for your transaction to have 15 confirmations so the network has been properly updated. Do this by: a. QT/GUI Wallet: Hovering your mouse over the transaction which will be called “payment to yourself”. Don’t worry, it won’t show 20000 Swamp coin, only the fee. The wallet will pop up a message such as (6 confirmations, will be available after 10). You are wating on this to reach 15 confirmations.
b. Command line: entering command ./swamp-cli listtransactions. The system will give an output similar to the below, you are waiting on the confirmations to reach 15.
"account": "",
"address": "WXQ2sBjp1bNEqrtiCG934Cd2ES5Egtgf4J",
"category": "received",
"amount": 20000.00000000,
"vout": 1,
"fee": -0.00020582,
<b>"confirmations": 6,</b>
"instantlock": false,
"blockhash": "000004d63c47db2ded3ae015e9e267b28dc64aab48beb768f28c1cb78884dbcd",
"blockindex": 1,
"blocktime": 1581371506,
"txid": "ddd852619c0a0146da4cb3179d6c1181a7a198ef268051680616f532c997fd05",
"walletconflicts": [
],
"time": 1581371506,
"timereceived": 1582910655,
"bip125-replaceable": "no",
"abandoned": false
}
Obtaining Keys in Local Wallet
Running a masternode requires 2 keys, an output and a private key to identify the node on the network. Both are obtained from the local wallet by:
a. QT/GUI Wallet: Open the debig console by clicking “Tools” then clicking “Debug Console”. In the ext entry space on the bottom of the popup windows enter the following 2 commands and save the long string the system will give you for use them in steps:
masternode outputs
masternode genkey
Now remove the quotes and the colon from the result of the masternode outputs command for use in the next steps. The end result is a long string and number at the end. The number will be a 1 or 0
b. Command line: enter the following 2 commands and save the long string the system will give you for use them in steps:
./swamp-cli masternode outputs
./swamp-cli masternode genkey
Now remove the quotes and the colon from the result of the masternode outputs command for use in the next steps. The end result is a long string and number at the end. The number will be a 1 or 0
Opening the proper Port on Firewall
It is necessary for other clients to talk to your masternode for it to be rewarded and cosidered Enabled.
Open the firewall on your VPS by entering command:
ufw allow 33333
If you have your linux server behind a router you will have to forward port 33333 to your linux server
Gathering Additional Information Needed for .conf Files
You will need to obtain you public IP address as well as decide on a user name and password for your masternode. Accomplish this by:
a. Access your VPS and type command
ip addr
You will receive an output similar to the following:
ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 56:00:02:31:fa:7c brd ff:ff:ff:ff:ff:ff
inet <b>49.12.117.64</b>/22 brd 45.32.219.255 scope global ens3<br>
valid_lft forever preferred_lft forever
inet6 fe80::5400:2ff:fe31:fa7c/64 scope link
valid_lft forever preferred_lft forever
The bold area is your ip address. Save it somewhere for use in the next steps
Next you need to think of a rpcuser (user name) and rpcpassword (password) to use. these can be anything, just save them off for the next steps. Good examples are:
rpcuser=swampcoinawesomeuser123123
rpcpassword=878765ghjhg675ytfytufgklhlk
Preparing the conf Files
Now you are going to update 2 files ending in .conf on your local machine that you sent the 20000 swamp to as well as create 2 .conf files on the VPS/Linux Server. These are located in the data directory your wallet is using. When installing the wallet you would have chosen the location but can also access the files by using the buttons in the GUI/QT wallet by:
a. QT/GUI Wallet: Click the Tools menu then click “Open Masternode Configuration File” which will open a text file. In the text file you will paste in the following configuration substituting in the information captured in previous steps.
mn your_ip_address:33333 your_masternode_genkey your_masternode_output
This will look similar to the following:
mn 49.12.117.64:33333 7Wowe2ZWhjddh1FXxi5UqBqSvGNkx3NsYKY4NLnhStZEJYmMyqg 7422b6e19b55ae41cb153b9be83d50721dfg6fd78a365763a7d35d2840967d54 0
b. VPS via Command line: In the termial of your VPS create the folder and the file with the following command:
mkdir ~/.swampcore && nano ~/.swampcore/masternode.conf
Now paste in the following configuration substituting in the information captured in previous steps. It may be easier to do this in a text editor on your local machine so you can paste it all in at once.
mn your_ip_address:33333 your_masternode_genkey your_masternode_output
This will look similar to the following:
mn 49.12.117.64:33333 7Wowe2ZWhjddh1FXxi5UqBqSvGNkx3NsYKY4NLnhStZEJYmMyqg 7422b6e19b55ae41cb153b9be83d50721dfg6fd78a365763a7d35d2840967d54 0
Save your file. To save in nano press control and x at the same time, press y to confirm, press enter save
The second file you will create is named swamp.conf and will only be done on the VPS. Create the file in nano by entering the following command:
nano ~/.swampcore/swamp.conf
Add the following substituting in the info you gathered above
listen=1
server=1
daemon=1
rpcuser=your_rpc_user
rpcpassword=your_rpcpassword
rpcallowip=127.0.0.1
masternode=1
masternodeprivkey=your_masternode_genkey
externalip=your_ip_address:33333
Save your file. To save in nano press control and x at the same time, press y to confirm, press enter save
It is now time to download and install the Swamp Coin daemon to run on your VPS/Linux Server. enter the following commands to download and extract the daemon on your VPS. If you decide to do this in a different folder other than your home folder you need to kconsider that when starting it alter. This guide assumes you are putting in in your home folder and running as the root user that most VPS providers give you. First navigate to the Swamp Coin github at https://github.com/swampcoin/swamp/releases and find the release that matches the VPS operating system you arerunning. This guide is running it on ubuntu 18.04 so substitute in the url that best matching your system:
wget https://github.com/swampcoin/swamp/releases/download/v2.0.0.2/swamp-v2002-ubuntu18-64.zip
unzip swamp-v2002-ubuntu18-64.zip
chmod swampd swamp-cl swamp-tx 755
** shown here using the example of installing swamp-v2002-ubuntu18-64.zip, but these can also be newer releases of the program, the installation process is similar.
Now its time to start the daemon up, do this by entering the following command:
./swampd
When you start the daemon you must wait until it’s fully in sync by entering command:
./swamp-cli mnsync status
The output will look similar to the following:
"AssetID": 999,
"AssetName": "MASTERNODE_SYNC_FINISHED",
"AssetStartTime": 1722306115,
"Attempt": 0,
"IsBlockchainSynced": true,
"IsMasternodeListSynced": true,
"IsWinnersListSynced": true,
"IsSynced": true,
"IsFailed": false
When the “IsSynced” row say true you are ready to start the node up by using command:
./swamp-cli masternode start-alias mn
The “mn” in the command is the name you gave your node. Feel free to call it anything you like.
You can check status of your masternode by using command:
./swamp-cli masternode status
If you did everything right you will see “Successfully Started” in the message given.
Now its time to set up Sentinel to keep things running smoothly and avoid WATCHDOG_EXPIRED status.
Swamp Sentinel
Original Link Github
https://github.com/swampcoin/sentinel/blob/master/README.md
An all-powerful toolset for Swamp.
Sentinel is an autonomous agent for persisting, processing and automating Swamp V1.1 governance objects and tasks.
Sentinel is implemented as a Python application that binds to a local version 1.1 swampd instance on each Swamp V1.1 Masternode.
This guide covers installing Sentinel onto an existing 1.1 Masternode in Ubuntu Linux.
Installation
1. Install Prerequisites
Make sure Python version 2.7.x or above is installed:
python --version
Update system packages and ensure virtualenv is installed:
sudo apt-get update
sudo apt-get -y install python-virtualenv
sudo apt install virtualenv
Make sure the local Swamp daemon running is at least version 1.1 (1010000)
swamp-cli getinfo | grep version
2. Install Sentinel
Clone the Sentinel repo and install Python dependencies.
sudo git clone https://github.com/swampcoin/sentinel.git && cd sentinel
sudo virtualenv ./venv
./venv/bin/pip install -r requirements.txt
3. Set up Cron
Set up a crontab entry to call Sentinel every minute:
crontab -e
In the crontab editor, add the lines below, replacing ‘~/sentinel’ to the path where you cloned sentinel to:
* * * * * cd ~/sentinel && ./venv/bin/python bin/sentinel.py >/dev/null 2>&1
4. Test the Configuration
Test the config by runnings all tests from the sentinel folder you cloned into
./venv/bin/py.test ./test
With all tests passing and crontab setup, Sentinel will stay in sync with swampd and the installation is complete
Configuration
An alternative (non-default) path to the swamp.conf
file can be specified in sentinel.conf
:
swamp_conf=/path/to/swamp.conf
Troubleshooting
To view debug output, set the SENTINEL_DEBUG
environment variable to anything non-zero, then run the script manually:
SENTINEL_DEBUG=1 ./venv/bin/python bin/sentinel.py
P.S.
For support on installing nodes, ask in Discord or other Swampcoin public resources
Links to useful guides :