aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-12 00:37:17 +0800
committerobscuren <geffobscura@gmail.com>2015-03-12 00:37:17 +0800
commit239e17de126a3d7afa29da7ee423ffc79757877f (patch)
treee2f844a7b2a1ad88010745449863aa6f1cc14da4 /cmd/utils/flags.go
parent61bf29be36a6678ba16c457229ca306339ea4ebc (diff)
parentc01d4c2f4c8704656e407ab4d80d9ec82e016731 (diff)
downloaddexon-239e17de126a3d7afa29da7ee423ffc79757877f.tar.gz
dexon-239e17de126a3d7afa29da7ee423ffc79757877f.tar.zst
dexon-239e17de126a3d7afa29da7ee423ffc79757877f.zip
Merge branch 'rpcfrontier' into develop
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index e945a32ee..6372aaa42 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -77,6 +77,10 @@ var (
Usage: "Virtual Machine type: 0 is standard VM, 1 is debug VM",
}
*/
+ UnlockedAccountFlag = cli.StringFlag{
+ Name: "unlock",
+ Usage: "Unlock a given account untill this programs exits (address:password)",
+ }
VMDebugFlag = cli.BoolFlag{
Name: "vmdebug",
Usage: "Virtual Machine debug output",
@@ -221,7 +225,8 @@ func GetChain(ctx *cli.Context) (*core.ChainManager, ethutil.Database, ethutil.D
func GetAccountManager(ctx *cli.Context) *accounts.Manager {
dataDir := ctx.GlobalString(DataDirFlag.Name)
ks := crypto.NewKeyStorePassphrase(path.Join(dataDir, "keys"))
- return accounts.NewManager(ks)
+ km := accounts.NewManager(ks)
+ return km
}
func StartRPC(eth *eth.Ethereum, ctx *cli.Context) {