mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 05:17:22 +00:00
921a44d9fd
* 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
34 lines
549 B
Go
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)
|
|
}
|
|
}
|