Skip to content

Commit

Permalink
createextrakey is now a production ready command
Browse files Browse the repository at this point in the history
  • Loading branch information
j16r committed Jan 14, 2019
1 parent 3b81902 commit 0c1e655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,7 @@ func NewApp(client *Client) *cli.App {
},
},
},
}

if client.Config.Dev() {
createextrakey := cli.Command{
{
Name: "createextrakey",
Usage: "Create a key in the node's keystore alongside the existing key; to create an original key, just run the node",
Action: client.CreateExtraKey,
Expand All @@ -194,8 +191,7 @@ func NewApp(client *Client) *cli.App {
Usage: "text file holding the password for the node's account",
},
},
}
app.Commands = append(app.Commands, createextrakey)
},
}
return app
}
1 change: 1 addition & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func ExampleRun() {
// sendether Send <amount> ETH from the node's ETH account to an <address>.
// chpass Change your password
// txattempts List the transaction attempts in descending order
// createextrakey Create a key in the node's keystore alongside the existing key; to create an original key, just run the node
// help, h Shows a list of commands or help for one command
//
// GLOBAL OPTIONS:
Expand Down

0 comments on commit 0c1e655

Please sign in to comment.