prysm-pulse/tools/cluster-pk-manager/server/keyChecker.go
terence tsao 2fef9d3e5e
Move blockchain service metrics package (#4959)
* Moved metrics package
2020-02-27 19:38:22 +00:00

34 lines
541 B
Go

package main
import (
"time"
)
var keyInterval = 3 * time.Minute
type keyChecker struct {
db *db
}
func newkeyChecker(db *db, beaconRPCAddr string) *keyChecker {
log.Warn("Key checker temporarily disabled during refactor.")
return &keyChecker{
db: db,
}
}
func (k *keyChecker) checkKeys() error {
log.Warn("Not checking for EXITED validator keys.")
return nil
}
func (k *keyChecker) run() {
for {
if err := k.checkKeys(); err != nil {
log.WithError(err).Error("Failed to check keys")
}
time.Sleep(keyInterval)
}
}