Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
One-stop solution for DECENOMY masternode management
This script was created to manage all coins related to DECENOMY, making it easy to handle masternode multinode installations and maintenance. With this tool, it's possible to:
Easily manage the masternodes multinode of different coins in each system
Track the status of your wallet
Check masternode status with Explorer
Perform maintenance tasks such as wallet updates, bootstraps, and connection management
The script will always have the latest wallet coin versions available as soon as they are released on each Github repo, which is handy and avoids the need to re-release the script each time.
The script was designed to be installed on pre-purchased Virtual Private Servers (VPS) running a Linux distribution. To install and run the script for the first time, copy and paste the full command below into a terminal prompt with root privileges:
wget -q https://raw.githubusercontent.com/decenomy/mnscript/main/decenomy.sh && bash decenomy.sh
After the first run, the script will convert the file " decenomy.sh " into an executable file named decenomy. Therefore, the user can simply type the following command at the terminal prompt to run the script the next time:
./decenomy
This aligns with our commitment to providing a simple and user-friendly experience with this tool.
A tutorial on how to easily install and deploy a Masternode using this DECENOMY Multinode Script can also be found on this website, please follow the link - Masternode Multinode easy deploy
The code of this script is available on our GitHub in a specific repository
https://github.com/decenomy/mnscript
Dynamic Menu Structure Based on Coin Selection and Installation Status
Since this script serves the needs of all DECENOMY coins, the first screen of it is based on the selection of the coin we want to manage. Only after the previous step, more options are available, always taking into account whether the coin is already installed in the system or not. Full option availability only after the coin is installed.
Masternode multinode management
List of masternodes in multinode list
Add masternode to multinode list
Delete masternode from multinode list
Wallet Statistics
Reload Information
Wallet Management
Masternode Statistics
Reload information
Masternode status complete info
Masternode on explorer
Wallet management
Update wallet
Apply bootstrap
Clean peers and banlist
Connections management
Restart service
Delete wallet
Update this script
File System
Others
Screen overview and detailed options
On this first screen, we can perform 3 different operations.
Select the coin we want to use
Update the script
Check which coins are installed on the system running this tool
Each coin is referenced by a number so that it can be used. Simply enter the number assigned to each coin in the prompt below and press Enter.
This option can be used in case of a script update. The script will assist the user by reading the latest version presented on Github and the version currently installed on the system (the version in use). The user will then be prompted to decide whether to proceed with the upgrade.
This feature provides an easy and fast way to determine which coin wallets have already been installed on the system through previous actions using this script and its own environment base.
Script option detailed
When selecting [3] Stats Wallet and masternode, a screen will appear with options to choose the desired type of statistics.
A comprehensive overview of all the information needed to keep track of the wallet associated with the masternode.
The wallet version is displayed in this section, which shows the latest version presented on the GitHub repository of the coin being managed, as well as the version currently installed on the user's system.
A more detailed check is provided to give an overview of the installed wallet and its performance:
The protocol version number of the running wallet.
The number of incoming and outgoing connections, providing an overall report on connectivity with the network.
Whether or not the wallet is synchronized with the blockchain.
The last block the wallet captured from the chain.
Using the latest block available on the explorer, the script pings the Decenomy explorer to get the exact hash of that block. The same procedure is done with the wallet, using the same block number used to ping the explorer. Ideally, the results should match. If they don't, we can easily identify a possible fork state of our wallet (or the network).
The "Reload Information" option is a simple action that refreshes the screen content to provide up-to-date information. This option can be selected as often as necessary.
If any of the reported information is incorrect, the "Wallet Management" option will be useful. It takes the user to another screen with numerous options for managing the wallet. This option is also available directly from the "Coin Selected" menu.
Detailed information about masternodes running in the system
Multinode Status Displays information about the entire broadcast of the multinode
Masternode Status Retrieves information about each masternode and reports its status on the network. Status: 4 is the default to report that it is running correctly.
This option is a simple action that refreshes the screen content to provide up-to-date information. This option can be selected as many times as needed.
Classic view of each masternode, with more detailed information about its status in the network
This option will ping the Decenomy explorer using the VPS IP to check if the masternode is actually running and broadcasting information to the blockchain. This process and the information provided will help avoid the need for the user to check the explorer themselves, making this tool the only place needed to check the real state of the masternode.
If any of the reported information is incorrect, this option will be useful. It will take the user to another screen with numerous options for managing the wallet. This option is also available directly from the "Coin Selected" menu.
Script option detailed
When selecting [4] Wallet management, a screen will appear with options to fully manage the masternode wallet.
Similar to the "Wallet statistics" options we checked earlier, the wallet version from Github and the wallet installed in the system will be displayed on the screen before confirming to update the wallet. This method will not destroy the already set masternode; it will only change the binaries related to the wallet and restart the service (not the masternode). Such a process is useful in case of a mandatory wallet release or any other wallet release that needs to be updated.
This option downloads an official bootstrap from the Decenomy Explorer and replaces the existing files with the newly downloaded ones. The bootstrap is used in cases where a fast sync is needed or when a fork in the wallet is detected. It's the safest way to quickly synchronize to the current blocks of the blockchain in question. This method does not destroy the already set master node, it only changes the chain block related files.
In some cases of extremely poor connectivity, it may be necessary to clean certain files such as peers.dat and banlist.dat. This option will perform this process and restart the wallet service. This method will not destroy the already set masternode; it will only clean the peers.dat and banlist.dat files.
This option runs the method for adding connections, also known as addnodes, to improve connectivity.
List of extra connections on the wallet This option lists the connections that were previously added.
Add connections to the wallet This option provides an easy method to add connections, along with a guideline to assist in the process. Please note that it's only possible to add one connection at a time. The connection to be added must have the following format addnode=188.40.85.215:45328 otherwise, it will not work properly.
Delete connections from the wallet This option provides an easy method to delete connections. You only need to type the number of the line (the number before the word "addnode") and press enter to delete it. Please note that it's only possible to delete one connection at a time.
Because several routines in this script have a built-in service restart, we recommend that you only use this feature for isolated scenarios, such as collateral changes or in the event of a service failure.
This is an easy way to delete the wallet. This method will remove all references to the wallet in the system as well as the masternode. Since the UserID is created each time the wallet is installed, it will also be deleted in this delete wallet routine. Once this process is complete, the coin select menu will appear as if the wallet for the selected coin had never been installed.
Script option detailed
If you select [5] Others, a screen appears with random options that are not suitable for other menus.
This option can be used in case of a script update. The script will assist the user by reading the latest version presented on GitHub and currently installed on the system (the version in use). The user will then be prompted to decide whether or not to upgrade. ( The same menu can be accessed directly from the main menu option number 18 )
Important information about the file system and file location related to the environment base described earlier.
Dynamic results according to what is installed in the system.
This menu has a dynamic result depending on what is installed in the system. If the coin masternode is not installed, you will be prompted to install it, as shown in the image below.
The master node installation process will display information about the current step. It is unlikely that the installation will get stuck, although the screen may appear frozen or the process may appear to have stopped. It is advisable to wait for some time before abruptly terminating the process. For reference, the complete automated process is shown in the image below.
Once the installation is complete, the coin selection screen for the installation will no longer be available and the coin selection screen will now be this one:
As you move forward in the script, everything is related to the coin selected in the main menu. In this case, it is Sapphire. Moving forward in the script, everything is related to the coin selected in the main menu. In this case, it is Sapphire.
This option will reinstall the masternode wallet.
All the tasks related to the multinodes can be performed within this option. The available options are List, Add, and Delete.
This option will open the menus to view the statistics of the wallet and the statistics of the masternode.
A handful of wallet management tools such as wallet update, bootstraps, peers management, addnodes, restart service, and delete wallet will be available in this option.
Script option detailed
This option will perform a new installation of the masternode wallet in the system. This action will delete all previous files related to the previously selected coin. A warning screen will be displayed after selecting this option, informing the user about the upcoming steps related to the action.
Script option detailed
One place to manage everything related to multinode.
This section lists all the multinodes already installed in the system, taking into account the previously selected coin.
The multinode result is always sorted by the alias and then by the masternodeKey.
This option allows you to add new multinode configurations and view those that have already been created or are currently being created.
It displays the same information as the previous option for listing multinodes.
This is a guide to help you easily understand how to fill out the multinode file.
The multinode information must be entered in steps. First, the alias is requested, and then only the masternodeKey is requested. In this last step, the key can be entered manually or generated automatically by pressing the Enter key.
This screen also shows the previously introduced alias as a reference.
This is an easy way to delete previously introduced multinode information.
Each line is numbered, making it easier to select the exact information to be deleted. After the selection is made, a confirmation screen is displayed and upon confirmation, the screen is updated with the final information.
Proper file installation and user ID creation for secure environment deployment.
The installation of the files provided by this script has been done properly, taking into account the best security practices. As a result, the files are not installed at the root level, as is common with similar tools. Instead, each instance of the coin installation will create its own user ID on the Linux system files, with the coin name serving as the identifier for the deployment location of the respective coin blockchain files. Please note the exact file locations using the coin sapphire as an example.
In case you need to have access to the mentioned directories and files via a terminal, please follow the next steps:
Breakdown of the important areas in the screen
To provide a more detailed understanding of this tool, it would be helpful to explain how the information is organized on the screen. This will make it easier for users to understand the documentation and how to use the script.
This refers to the version number of the script that is installed and currently in use.
This area displays a section tree to help the user understand where they are in the script menu. It will also serve as a useful reference in case of support needs, allowing easy navigation to the same screen.
This is the current menu title or a brief description of the screen that is currently displayed. It will always display the selected coin after this action is performed.
All the information necessary for the operation of the screen, as well as the options available.
Each screen will have its own set of options to enter.
$HOME directory
/home/users/
-
Directory of user ID
/home/users/userID/
/home/users/sapphire/
Wallet files location for user id
/home/users/userID/.coin
/home/users/sapphire/.sapphire
Daemon location
/usr/local/bin/
-
Service files directory
/etc/systemd/system/
-
To enter in userID
su - userID
su - sapphire
To logout from userID
exit
exit