September 29, 2022

Notification system for Haqq validator

  1. Install Halflife
  2. Config Discord server

Install Halflife

git clone https://github.com/strangelove-ventures/half-life.git && \
cd ~/half-life && \
cp config.yaml.example config.yaml && \
go install && \
cp config.yaml.example config.yaml

Chande config.yaml

notifications:
  service: discord
  discord:
    webhook:
      id: DISCORD_WEBHOOK_ID
      token: DISCORD_WEBHOOK_TOKEN
    alert-user-ids:
      - DISCORD_USER_ID
    username: HalfLife
validators:
- name: HAQQ
  rpc: https://haqq-t.rpc.manticore.team:443
  address: VALL_ADDRESS
  chain-id: haqq_54211-2
  sentries:
    - name: VALL_NAME
      grpc: GRPC_NODE_ADDR
  rpc-retries: 20
  # only alert when 2/20 missed blocks have occurred (default is 1)
  missed-blocks-threshold: 2
  # enable this when the node is not in the active set
  fullnode: true

Start HalfLife

halflife monitor -f ~/half-life/config.yaml