aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorKurkó Mihály <kurkomisi@users.noreply.github.com>2019-05-07 20:49:51 +0800
committerPéter Szilágyi <peterke@gmail.com>2019-05-07 20:49:51 +0800
commit107c67d74ebfee16616bac92d0c39c8bfc9348ae (patch)
tree82588f987ee8a345183e03aa2403e1c5cf9695ed /internal
parentc8cf360f29f00d16aacf9a0592dd3621efef0d41 (diff)
downloadgo-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.tar
go-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.tar.gz
go-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.tar.bz2
go-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.tar.lz
go-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.tar.xz
go-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.tar.zst
go-tangerine-107c67d74ebfee16616bac92d0c39c8bfc9348ae.zip
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
Diffstat (limited to 'internal')
-rw-r--r--internal/ethapi/api.go3
1 files changed, 3 insertions, 0 deletions
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