Danger
This installation is exclusive to those who installed it from me. Those who install it elsewhere may get errors.
Prerequisites
bash
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
sudo apt-get update && apt-get install -y libssl-devbash
sudo apt update
sudo apt install python3.10
sudo apt install python3.10-venvInstallation Steps
bash
cd $HOME
git clone https://github.com/cmancrypto/symphony-oracle-voter.gitbash
cd symphony-oracle-voter
git checkout v0.0.5r1Danger
If you are going to use your own RPC/API, you need to change. Don't forget to write your symphony address and valoper address.
Option --default-- (keyring_back_end = os)
bash
cat <<EOF > .env
VALIDATOR_ADDRESS= symphonyvaloperxxx
VALIDATOR_ACC_ADDRESS= symphonyxxx
KEY_PASSWORD= walletpassword;
KEY_BACKEND = os
SYMPHONY_LCD= https://api-symphonyd.vinjan.xyz #or http://localhost:35317 defaultport 1317
TENDERMINT_RPC= https://rpc-symphonyd.vinjan.xyz #or http://localhost:35657 defaultport 26657
EOFOption --my guide-- (keyring_back_end = test)
bash
cat <<EOF > .env
VALIDATOR_ADDRESS= symphonyvaloperxxx
VALIDATOR_ACC_ADDRESS= symphonyxxx
KEY_BACKEND = test
SYMPHONY_LCD= https://api-symphonyd.vinjan.xyz #or http://localhost:35317 defaultport 1317
TENDERMINT_RPC= https://rpc-symphonyd.vinjan.xyz #or http://localhost:35657 defaultport 26657
EOFYou can proceed after choosing Option 1 or Option 2
bash
python3 -m venv venvbash
source venv/bin/activatebash
pip install -r requirements.txtbash
deactivateService File
bash
sudo tee /etc/systemd/system/oracle.service > /dev/null << EOF
[Unit]
Description=Symphony Oracle
After=network.target
[Service]
## Environment variables
Environment="SYMPHONYD_PATH=$(which symphonyd)"
Environment="PYTHON_ENV=production"
Environment="LOG_LEVEL=INFO"
Environment="DEBUG=false"
## Service configuration
Type=simple
User=root
WorkingDirectory=/root/symphony-oracle-voter/
ExecStart=/root/symphony-oracle-voter/venv/bin/python3 -u /root/symphony-oracle-voter/main.py
Restart=always
RestartSec=3
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
EOFbash
sudo systemctl daemon-reload
sudo systemctl enable oracle.service
sudo systemctl start oracle.servicebash
sudo journalctl -u oracle -f -o catIf you encounter any issues, check the service logs for more detailed error messages:
bash
sudo journalctl -u oracle.service -n 50 --no-pager