mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 12:40:05 +00:00
forgot to wrap these two errors (#3156)
This commit is contained in:
parent
ccc7d8d7b7
commit
2ec8a46cb2
@ -51,7 +51,7 @@ func NewValidatorAccount(directory string, password string) error {
|
|||||||
}
|
}
|
||||||
shardWithdrawalKeyFile = shardWithdrawalKeyFile + hex.EncodeToString(shardWithdrawalKey.PublicKey.Marshal())[:12]
|
shardWithdrawalKeyFile = shardWithdrawalKeyFile + hex.EncodeToString(shardWithdrawalKey.PublicKey.Marshal())[:12]
|
||||||
if err := ks.StoreKey(shardWithdrawalKeyFile, shardWithdrawalKey, password); err != nil {
|
if err := ks.StoreKey(shardWithdrawalKeyFile, shardWithdrawalKey, password); err != nil {
|
||||||
return fmt.Errorf("unable to store key %v", err)
|
return errors.Wrap(err, "unable to store key %v")
|
||||||
}
|
}
|
||||||
log.WithField(
|
log.WithField(
|
||||||
"path",
|
"path",
|
||||||
@ -63,7 +63,7 @@ func NewValidatorAccount(directory string, password string) error {
|
|||||||
}
|
}
|
||||||
validatorKeyFile = validatorKeyFile + hex.EncodeToString(validatorKey.PublicKey.Marshal())[:12]
|
validatorKeyFile = validatorKeyFile + hex.EncodeToString(validatorKey.PublicKey.Marshal())[:12]
|
||||||
if err := ks.StoreKey(validatorKeyFile, validatorKey, password); err != nil {
|
if err := ks.StoreKey(validatorKeyFile, validatorKey, password); err != nil {
|
||||||
return fmt.Errorf("unable to store key %v", err)
|
return errors.Wrap(err,"unable to store key %v")
|
||||||
}
|
}
|
||||||
log.WithField(
|
log.WithField(
|
||||||
"path",
|
"path",
|
||||||
|
Loading…
Reference in New Issue
Block a user