diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-11 23:33:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-11 23:33:04 +0800 |
commit | 6b63759ded5766396029445af772e35e3b8c1c67 (patch) | |
tree | fec7b3e65187cc9ae1b37e4206aba8db637636c4 /cmd/utils/flags.go | |
parent | 7add66c8bba3b3ad8bcc0bab4a0344c7682b7303 (diff) | |
download | go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.tar go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.tar.gz go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.tar.bz2 go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.tar.lz go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.tar.xz go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.tar.zst go-tangerine-6b63759ded5766396029445af772e35e3b8c1c67.zip |
Reverted global
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 2c7d37942..6372aaa42 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -222,15 +222,10 @@ func GetChain(ctx *cli.Context) (*core.ChainManager, ethutil.Database, ethutil.D return core.NewChainManager(blockDb, stateDb, new(event.TypeMux)), blockDb, stateDb } -// Global account manager -var km *accounts.Manager - func GetAccountManager(ctx *cli.Context) *accounts.Manager { dataDir := ctx.GlobalString(DataDirFlag.Name) - if km == nil { - ks := crypto.NewKeyStorePassphrase(path.Join(dataDir, "keys")) - km = accounts.NewManager(ks) - } + ks := crypto.NewKeyStorePassphrase(path.Join(dataDir, "keys")) + km := accounts.NewManager(ks) return km } |