General Maintenance
In this section you can find a few standalone instructions for keeping your Masternode running and up-to-date.
Setting Alterdot daemon to start automatically between server restarts
You can easily setup the alterdot daemon to restart when your server reboots. This means one less task to worry about during server maintenance
cron
is job scheduler that is used in Unix environments. You can set it up to execute certain scripts or launch programs at specific times. While this guide will not go into the details of cron
, it will cover a special trigger for cron @reboot
.
For this example, we assume that the alterdotd binary is located at /home/myuser/alterdot. Invoke the cron editor through the command crontab -e. If this is the first time, you will be asked to choose the text editor. Enter the following as the last line
@reboot /home/myuser/alterdot/alterdotd --daemon
Save the file. You will see a message that the crontab was successfully installed. You can view that the cron is setup by executing the command crontab -l
An alternate to cron is to setup alterdot as a service, but this way is easier and works across different linux flavors.
Updating your Masternode to the latest version
Log in to your server by using Putty or directly through SSH.
Go inside the folder that contains your Alterdot client and shut it down by running the command:
./alterdot-cli stop
Exit this folder and download the latest Alterdot version using:
Extract the downloaded archive and copy its contents into a folder named
alterdot
for easier usage. If you already have this folder, the previous daemon and client will be overwritten.
Go into the
alterdot
folder and start your node.
You can check whether or not your Masternode is running well by using these two commands:
./alterdot-cli getinfo
will return the current state of your node, the number of blocks that it has synchronized, how many peers it's got, the version number and other things;
./alterdot-cli masternode status
will return the current state of your Masternode, it should be labeled as Ready
if it is running correctly.
Lifting your Masternode ban (POSE_BANNED)
In order to let the network know that your Masternode has resumed normal service, you have to create a Provider Update Service Transaction (ProUpServTx).
Start your controller wallet (the one you used for registering the Masternode).
Go to
Tools->Debug
console and run the following command:
Where:
proTxHash is the hash of the registration transaction (ProRegTx). You can find it in your Masternode tab by right-clicking the Masternode you wish to update.
ipAndPort is the IP and port of your Masternode in the format "
ip:port
"operatorKey is the BLS private key associated with this Masternode. You can find it in your alterdot.conf file present in the
.alterdot
folder of your server.operatorPayoutAddress (optional) is the address used for operator rewards. This is allowed only if you did initially specify an operator address in your registration transaction. Input an empty string like "" for this if you don't need it.
feeSourceAddress (optional) is an address used to pay the fee for this transaction. The standard fee has to be paid in order for this transaction to be accepted into our blockchain so this is where you specify the address used for that.
Example:
More information
The core Alterdot codebase is based on Dash (DASH), so you can find additional information about the functioning of Masternodes and other maintenance instructions on their Docs page.
Last updated