Commit 221fae41 authored by Felix Lange's avatar Felix Lange

cmd/ethereum: show some help before prompting for encryption passphrase

parent 2407f006
...@@ -186,6 +186,7 @@ Please run 'ethereum account new' to create a new account.`) ...@@ -186,6 +186,7 @@ Please run 'ethereum account new' to create a new account.`)
func startEth(ctx *cli.Context, eth *eth.Ethereum) { func startEth(ctx *cli.Context, eth *eth.Ethereum) {
utils.StartEthereum(eth) utils.StartEthereum(eth)
// Start auxiliary services if enabled.
if ctx.GlobalBool(utils.RPCEnabledFlag.Name) { if ctx.GlobalBool(utils.RPCEnabledFlag.Name) {
utils.StartRPC(eth, ctx) utils.StartRPC(eth, ctx)
} }
...@@ -207,6 +208,8 @@ func accountList(ctx *cli.Context) { ...@@ -207,6 +208,8 @@ func accountList(ctx *cli.Context) {
func accountCreate(ctx *cli.Context) { func accountCreate(ctx *cli.Context) {
am := utils.GetAccountManager(ctx) am := utils.GetAccountManager(ctx)
fmt.Println("The new account will be encrypted with a passphrase.")
fmt.Println("Please enter a passphrase now.")
auth, err := readPassword("Passphrase: ", true) auth, err := readPassword("Passphrase: ", true)
if err != nil { if err != nil {
utils.Fatalf("%v", err) utils.Fatalf("%v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment