mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
@@ -83,7 +83,7 @@ func zipKeystoresToOutputDir(keystoresToBackup []*keymanager.Keystore, outputDir
|
||||
}
|
||||
}
|
||||
log.WithField(
|
||||
"backup-path", archivePath,
|
||||
"backupPath", archivePath,
|
||||
).Infof("Successfully backed up %d accounts", len(keystoresToBackup))
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ func OpenOrCreateNewWallet(cliCtx *cli.Context) (*Wallet, error) {
|
||||
if err := w.SaveWallet(); err != nil {
|
||||
return nil, errors.Wrap(err, "could not save wallet to disk")
|
||||
}
|
||||
log.WithField("wallet-path", walletDir).Info(
|
||||
log.WithField("walletPath", walletDir).Info(
|
||||
"Successfully created new wallet",
|
||||
)
|
||||
return w, nil
|
||||
|
||||
@@ -36,7 +36,7 @@ func (acm *CLIManager) WalletCreate(ctx context.Context) (*wallet.Wallet, error)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.WithField("--wallet-dir", acm.walletDir).Info(
|
||||
log.WithField("walletDir", acm.walletDir).Info(
|
||||
"Successfully created wallet with ability to import keystores",
|
||||
)
|
||||
case keymanager.Derived:
|
||||
@@ -50,7 +50,7 @@ func (acm *CLIManager) WalletCreate(ctx context.Context) (*wallet.Wallet, error)
|
||||
); err != nil {
|
||||
return nil, errors.Wrap(err, "could not initialize wallet")
|
||||
}
|
||||
log.WithField("--wallet-dir", acm.walletDir).Info(
|
||||
log.WithField("walletDir", acm.walletDir).Info(
|
||||
"Successfully created HD wallet from mnemonic and regenerated accounts",
|
||||
)
|
||||
case keymanager.Web3Signer:
|
||||
|
||||
@@ -48,7 +48,7 @@ func (acm *CLIManager) WalletRecover(ctx context.Context) (*wallet.Wallet, error
|
||||
if err := km.RecoverAccountsFromMnemonic(ctx, acm.mnemonic, acm.mnemonicLanguage, acm.mnemonic25thWord, acm.numAccounts); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.WithField("wallet-path", w.AccountsDir()).Infof(
|
||||
log.WithField("walletPath", w.AccountsDir()).Infof(
|
||||
"Successfully recovered HD wallet with %d accounts. Please use `accounts list` to view details for your accounts",
|
||||
acm.numAccounts,
|
||||
)
|
||||
|
||||
@@ -271,8 +271,8 @@ func (c *ValidatorClient) initializeFromCLI(cliCtx *cli.Context, router *mux.Rou
|
||||
c.wallet = w
|
||||
// TODO(#9883) - Remove this when we have a better way to handle this.
|
||||
log.WithFields(logrus.Fields{
|
||||
"wallet": w.AccountsDir(),
|
||||
"keymanager-kind": w.KeymanagerKind().String(),
|
||||
"wallet": w.AccountsDir(),
|
||||
"keymanagerKind": w.KeymanagerKind().String(),
|
||||
}).Info("Opened validator wallet")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user