mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("could not get private key: %v", err)
|
return nil, fmt.Errorf("could not get private key: %v", err)
|
||||||
}
|
}
|
||||||
|
var key *keystore.Key
|
||||||
|
for _, v := range keys {
|
||||||
|
key = v
|
||||||
|
break
|
||||||
|
}
|
||||||
return &ValidatorService{
|
return &ValidatorService{
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
endpoint: cfg.Endpoint,
|
endpoint: cfg.Endpoint,
|
||||||
withCert: cfg.CertFlag,
|
withCert: cfg.CertFlag,
|
||||||
keys: keys,
|
keys: keys,
|
||||||
|
key: key,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user