How to Set Up Your Own Forging Pool with ADAMANT

Feb 26, 2022 | Blockchain

Welcome to the future of decentralized finance! With the ADAMANT Forging Pool, crafting your own forging pool is as potent as creating a secure bank in the digital world. This guide will walk you through the process of setting up your pool, ensuring that you can leverage the advantages of decentralized networks effortlessly.

Why Choose the ADAMANT Forging Pool?

The ADAMANT Forging Pool is the successor of the outdated v2 Forging pool. This software enables you to:

  • Calculate and transfer voters’ rewards automatically.
  • Install easily.
  • Utilize the reliable benefits of a decentralized network.
  • Customize through a simple configuration file.
  • Store all history in local files, powered by lowdb.
  • Run on minimum server requirements: just 1 vCPU and 512 MB of RAM.
  • Set up the pool on a separate machine without requiring a node.
  • Access a mobile-friendly dashboard for voters.
  • Implement a notification system through ADAMANT or Slack for administrators.

Installation Requirements

Before diving into the setup, ensure you have:

  • NodeJS v16+ (already installed if you have a node on your machine)

Step-by-Step Setup

Follow these steps to install the ADAMANT Forging Pool:

Clone the Repository

Start by cloning the ADAMANT pool repository into a newly created directory:

git clone https://github.com/Adamant-im/pool

Navigate to Directory

Move into the directory with the cloned repository:

cd pool

Install Dependencies

Install necessary dependencies using npm or your package manager of choice:

npm install

Build the Website

Next, you’ll build the website:

npm run build:web

Configure the Pool

Copy the default configuration file and modify the secret phrase for your pool:

cp config.default.jsonc config.jsonc

Edit the configuration using a text editor:

nano config.jsonc

Ensure you review the comments in config.default.jsonc for additional parameters.

Migrating from v2

If you’re coming from v2, run the migration script to your target pool:

node scripts/migrate.mjs ~adamant-pool

Launching the Pool

Start the pool with the following command:

npm run start

For a more reliable operation, it’s recommended to use a process manager like pm2:

pm2 start .scripts/start.sh --name adamantpool

Automate Pool Start with Cron

Edit your crontab to make sure your pool starts automatically at reboot:

crontab -e

Add the following line:

@reboot cd home/adamantpool && pm2 start home/adamantpool/scripts/start.sh --name adamantpool

Troubleshooting

If you encounter any issues during setup, consider these troubleshooting ideas:

  • Ensure NodeJS is correctly installed and is of the appropriate version.
  • Double-check your configuration values for typos or incorrect paths.
  • Check for any errors in the terminal output for specific warning messages.
  • If the pool doesn’t launch, verify that pm2 is installed properly.

For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.

Conclusion

Setting up your own forging pool with ADAMANT allows for a reliable and rewarding experience. Remember that preferring a decentralized network enhances security and accessibility, putting the power back in your hands. Always refer back to the documentation for updates or community support.

At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

Stay Informed with the Newest F(x) Insights and Blogs

Tech News and Blog Highlights, Straight to Your Inbox