This is a set of scripts for golos blockchain witness operators.
- update_price_feed.py: script to update GBG/GOLOS price feed in golos blockchain
- witness_monitor.py: script to monitor block misses and autoswitch nodes
- golos node 0.22+
- Install poetry
- Run
poetry install
to install the dependencies - Copy
common.yml.example
tocommon.yml
and change variables according to your needs - Now you're ready to run scripts:
poetry shell
./script.py
Plain docker example:
docker run -it --rm vvk123/golos-witness-tools:latest ./update_price_feed.py --dry-run
docker-compose:
- copy docker-compose.yml.example to docker-compose.yml
- adjust environment variables in docker-compose.yml. Look for all env vars in
docker-entrypoint.sh
docker-compose up -d
To manually build docker image:
docker build -t vvk123/golos-witness-tools:latest .