Skip to content

Script for automatically unregistering a block producer when it stops producing

License

Notifications You must be signed in to change notification settings

tmuskal/eos-bp-watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

eos-bp-watchdog

Script for automatically unregistering a block producer when it stops producing

Requirements:

  • cleos
  • jq

First time setup

  1. Create key for the watchdog permissions:
cleos create key

Private key: YOUR_PRIVATE_KEY

Public key: YOUR_PUBLIC_KEY

  1. Grant watchdog permissions
PRODUCERACCT=yourbp

cleos set account permission $PRODUCERACCT watchdog '{"threshold":1,"keys":[{"key":"YOUR_PUBLIC_KEY","weight":1}]}' "active" -p $PRODUCERACCT@active

cleos set action permission $PRODUCERACCT eosio unregprod watchdog

  1. Create wallet for the watchdog permissions
cleos wallet create -n watchdog

Save password to use in the future to unlock this wallet.

Without password imported keys will not be retrievable.

"PWyourpasswordyourpasswordyourpasswordyourpassword"

  1. Import key for the watchdog permissions
cleos wallet import YOUR_PRIVATE_KEY -n watchdog
  1. Modify the PRODUCERACCT and PASS variables inside watchdog.sh

Run

./watchdog.sh yourbp PWyourpasswordyourpasswordyourpasswordyourpassword

Contributors

About

Script for automatically unregistering a block producer when it stops producing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages