prysm-pulse/tools/cluster-pk-manager/server/keyChecker.go

34 lines
529 B
Go
Raw Normal View History

package main
import (
"time"
)
var keyInterval = 3 * time.Minute
type keyChecker struct {
db *db
}
func newkeyChecker(db *db, _ 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)
}
}