From 107c67d74ebfee16616bac92d0c39c8bfc9348ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kurk=C3=B3=20Mih=C3=A1ly?= Date: Tue, 7 May 2019 15:49:51 +0300 Subject: 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 --- internal/ethapi/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/ethapi/api.go') diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 3c18ea709..e918df9bb 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -295,6 +295,9 @@ func (s *PrivateAccountAPI) DeriveAccount(url string, path string, pin *bool) (a func (s *PrivateAccountAPI) NewAccount(password string) (common.Address, error) { acc, err := fetchKeystore(s.am).NewAccount(password) if err == nil { + 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, nil } return common.Address{}, err -- cgit v1.2.3