Chain Setup Guide
SPHX Testnet Setup Guide
Introduction
This guide provides detailed steps to set up and run a node on the SPHX Testnet. By the end of this guide, you will have your node configured, connected to bootnodes, and running as a systemd service for easy management.
Prerequisites
Before setting up the node, ensure you have:
A server or machine with the following minimum requirements:
2 CPU cores
4 GB of RAM
100 GB SSD storage
A stable internet connection
Basic command-line knowledge to execute commands and manage configurations.
Step 1: Install SPHX Binaries
Start by downloading and installing the latest version of SPHX binaries. You can find the most recent release here.
For Linux, follow these steps:
Step 2: Initialize Your Node
Next, initialize the node with your desired moniker (node name):
This command will create the configuration files needed to run the node. The configuration files will be located in ~/.sphxd
.
Step 3: Configure Bootnodes and Seeds
Edit the config.toml
file located in ~/.sphxd/config/
to include the provided bootnodes. Use a text editor such as nano:
Find the persistent_peers
field and add the following bootnodes:
Make sure to also adjust the seeds
field if needed (this is optional if the bootnodes are working well).
Step 4: Download Genesis File
Download the latest SPHX Testnet genesis file and place it in the configuration folder:
Step 5: Configure Systemd Service
To ensure your node runs continuously and restarts automatically in case of a reboot or failure, you can create a systemd service file.
Create blockchain.service
File
blockchain.service
FileCreate a new systemd service file by running:
Add the following content to the file:
Make sure to replace <your_user>
with your actual username.
Enable and Start the Service
After creating the service file, reload systemd and enable the service to start automatically:
Check the status of the service to ensure it’s running:
Step 6: Verify Node Synchronization
Once your node is running as a service, you can check its synchronization status using:
This will provide you with details about the current block height and whether your node is catching up with the network.
Step 7: Monitoring and Logs
To monitor your node’s logs, use the following command:
This will provide a real-time view of the logs generated by your node. If any issues arise, you can troubleshoot by reviewing these logs.
Final Notes
System Security: Consider securing your server by using SSH key authentication, configuring a firewall, and monitoring resource usage.
Community and Support: Join the SPHX community for updates and assistance in case of issues.
Regular Updates: Make sure to periodically update your node software as new versions of SPHX are released to ensure compatibility with the latest network features.
By following these steps, your SPHX Testnet node should be up and running smoothly as a systemd service. If you encounter any issues or need further assistance, don’t hesitate to reach out to the community or consult the official documentation.
Last updated