accounts, cmd, internal, signer: add note about backing up the keystore (#19432)

* accounts: add note about backing up the keystore

* cmd, accounts: move the printout to accountCreate

* internal, signer: add info when new account is created via rpc

* cmd, internal, signer: split logs

* cmd/geth: make account new output a bit more verbose
This commit is contained in:
Kurkó Mihály
2019-05-07 15:49:51 +03:00
committed by Péter Szilágyi
parent c8cf360f29
commit 107c67d74e
5 changed files with 28 additions and 5 deletions

View File

@ -392,6 +392,9 @@ func (api *SignerAPI) New(ctx context.Context) (common.Address, error) {
} else {
// No error
acc, err := be[0].(*keystore.KeyStore).NewAccount(resp.Text)
log.Info("Your new key was generated", "address", acc.Address)
log.Warn("Please backup your key file!", "path", acc.URL.Path)
log.Warn("Please remember your password!")
return acc.Address, err
}
}