Major Hive Witness Essentials Upgrade - V2

Words
297
Reading
2 min
Listen
Play
2y

image.png


Hivers, it’s been four years since I released the last major version of Hive Witness Essentials.

While it’s been running with a few updates & fixes along the way, four years is a long time in tech and I decided it was time for a complete overhaul.

So, I’m happy to announce that Hive Witness Essentials V2 is now live and ready!

What's new?

The core functionality remains the same but with a major code rewrite: it’s cleaner, more efficient, and — most importantly — much easier to use. Rather than four separate configurations for each tool (watcher, remote, pricefeed and cli), they’re now all combined into one. You can now manage them from a single script, streamlining everything and making it simpler to work with.

If you prefer, you can still run each tool as a separate process, but if not, you’ll enjoy the same functionality with a more user-friendly setup.

Check it out on GitHub: https://github.com/therealwolf42/hive-witness-essentials

Here’s what’s included:

  • Pricefeed - Publish reliable price feeds
  • Watcher - Monitor for missed blocks, switch to backup nodes on failure, and get notified
  • CLI - Command-line interface for quick witness updates, signing-key management, and parameter changes
  • Remote - Full CLI functionality via Telegram.

Getting Started Guide

All essentials (Watcher, Pricefeed, and Remote) support Docker, which is the recommended deployment option.

git clone git@github.com:therealwolf42/hive-witness-essentials.git

# Copy example config
cp config/config.example.json config/config.json

# Edit the config file and replace values as needed
# Ensure each essential's ENABLED flag is set to true/false as desired.
nano config/config.json

# Optional: Ensure script permissions
chmod +x run.sh

# Optional: Install Docker if not yet installed
./run.sh install_docker

# Install dependencies
sudo apt install jq

# Rebuild whenever you update the config, then restart and view logs
./run.sh build && ./run.sh restart && ./run.sh logs

To list available commands and check active essentials, use: `./run.sh help`

(Optional) Installing Node

To use the CLI tool, you’ll need Node.js (version 18+ recommended, ideally the latest LTS v22). Here’s how to install or update it:

sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -

sudo apt-get install nodejs
npm install -g pnpm pm2 && pnpm i

Have Questions?

If you encounter any bugs or have questions, let me know, and I’ll be happy to help!

#HiveOn

Wolf


Do you believe that my work is valuable for Hive? Then please vote for me as witness.


PS: Check out my 7 year anniversary post: @therealwolf/year-8