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
437ceaa9
Unverified
Commit
437ceaa9
authored
May 23, 2017
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: reintroduce wallet import subcommand
parent
35569620
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
15 deletions
+30
-15
accountcmd.go
cmd/geth/accountcmd.go
+30
-15
No files found.
cmd/geth/accountcmd.go
View file @
437ceaa9
...
@@ -31,25 +31,40 @@ import (
...
@@ -31,25 +31,40 @@ import (
var
(
var
(
walletCommand
=
cli
.
Command
{
walletCommand
=
cli
.
Command
{
Name
:
"wallet"
,
Name
:
"wallet"
,
Usage
:
"Import Ethereum presale wallets"
,
Usage
:
"Manage Ethereum presale wallets"
,
Action
:
utils
.
MigrateFlags
(
importWallet
),
ArgsUsage
:
""
,
Category
:
"ACCOUNT COMMANDS"
,
Category
:
"ACCOUNT COMMANDS"
,
Flags
:
[]
cli
.
Flag
{
utils
.
DataDirFlag
,
utils
.
KeyStoreDirFlag
,
utils
.
PasswordFileFlag
,
utils
.
LightKDFFlag
,
},
Description
:
`
Description
:
`
geth wallet [options] /path/to/my/presale.wallet
geth wallet import /path/to/my/presale.wallet
will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
passwordfile as argument containing the wallet password in plaintext.`
,
Subcommands
:
[]
cli
.
Command
{
{
will prompt for your password and imports your ether presale account.
Name
:
"import"
,
It can be used non-interactively with the --password option taking a
Usage
:
"Import Ethereum presale wallet"
,
passwordfile as argument containing the wallet password in plaintext.
ArgsUsage
:
"<keyFile>"
,
Action
:
utils
.
MigrateFlags
(
importWallet
),
Category
:
"ACCOUNT COMMANDS"
,
Flags
:
[]
cli
.
Flag
{
utils
.
DataDirFlag
,
utils
.
KeyStoreDirFlag
,
utils
.
PasswordFileFlag
,
utils
.
LightKDFFlag
,
},
Description
:
`
geth wallet [options] /path/to/my/presale.wallet
`
,
will prompt for your password and imports your ether presale account.
It can be used non-interactively with the --password option taking a
passwordfile as argument containing the wallet password in plaintext.`
,
},
},
}
}
accountCommand
=
cli
.
Command
{
accountCommand
=
cli
.
Command
{
Name
:
"account"
,
Name
:
"account"
,
Usage
:
"Manage accounts"
,
Usage
:
"Manage accounts"
,
...
...
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