Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
221fae41
Commit
221fae41
authored
Mar 10, 2015
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/ethereum: show some help before prompting for encryption passphrase
parent
2407f006
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
main.go
cmd/ethereum/main.go
+3
-0
No files found.
cmd/ethereum/main.go
View file @
221fae41
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment