Fellow Witnesses & those that aspire to become one,
I've upgraded and tested all of my witness tools for #Hive.
https://github.com/therealwolf42/hive-witness-essentials
This includes:
- Pricefeed (Publish reliable Pricefeeds)
- Watcher (Watch for missed blocks, failover to backup-nodes & alert via notifications)
- CLI (Command-line interface commands for witnesses to quickly update signings-keys, parameters or disable witness)
- Remote Control (Same as CLI, just via Telegram)
Now, what was previously 4 separate repositories, is now a single mono-repo. Which means, in order to migrate your previous versions, you need to clone the repo and copy over your previous configs.
Info: If, for whatever reason, you're running scripts for multiple witnesses, you can simply copy the specific folder inside essentials sub-folder. I haven't tested it, but it should "theoretically" work - if not, please tell me :P
Simple Guide
Watcher, Pricefeed and Remote all support Docker, which is the recommended deployment option.
git clone git@github.com:therealwolf42/hive-witness-essentials.git
cd essentials/{watcher,pricefeed,remote} # select one!
# If you need to migrate your previous config, do it now!
cp configs/config.example.json configs/config.json
# Now replace/enter everything besides the RPC nodes as they are up-to-date.
## On MacOS you can delete lines with control + k
nano configs/config.json
# script needs proper rights
chmod +x run.sh
# optional if docker not yet installed
./run.sh install_docker
# Let's get it on
./run.sh build && ./run.sh restart && ./run.sh logs
To get a list of possible commands, use: ./run.sh help
(Optional) Installing Node
If you want to use CLI, you need to install node (min v10+)
You can install/update it via:
sudo apt-get install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt-get install nodejs
Afterward, simply run yarn in the root folder or any of the subfolders to install dependencies and you're good to go.
Something unclear?
If something isn't completely clear or there are bugs, please let me know so I can fix it.
Wolf