mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
take first validator key (#2116)
This commit is contained in:
parent
e25ec29d17
commit
f3a2fc64f1
@ -48,12 +48,18 @@ func NewValidatorService(ctx context.Context, cfg *Config) (*ValidatorService, e
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not get private key: %v", err)
|
||||
}
|
||||
var key *keystore.Key
|
||||
for _, v := range keys {
|
||||
key = v
|
||||
break
|
||||
}
|
||||
return &ValidatorService{
|
||||
ctx: ctx,
|
||||
cancel: cancel,
|
||||
endpoint: cfg.Endpoint,
|
||||
withCert: cfg.CertFlag,
|
||||
keys: keys,
|
||||
key: key,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user