prysm-pulse/tools/cluster-pk-manager/server/keyChecker.go
Preston Van Loon 921a44d9fd
Clean up unused / deprecated protobuf definitions (#4949)
* Remove unused services, mark everything as deprecated, regen pb.go
* remove some code from cluster pk manager, gazelle
* goimports
* remove mocks
* Merge branch 'master' into remove-deprecated-proto-defs
2020-02-26 21:15:36 +00:00

34 lines
549 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)
}
}