diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 16:32:05 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-07 16:32:05 +0800 |
commit | 35cd355c14d9a5266a7d4b11127d25eb7f961494 (patch) | |
tree | 879c8d86b8865f733c73992e8c04c71d52152437 /cmd/geth | |
parent | d764bd058457cd9eb91d205d1ac187d40c4866d6 (diff) | |
download | go-tangerine-35cd355c14d9a5266a7d4b11127d25eb7f961494.tar.gz go-tangerine-35cd355c14d9a5266a7d4b11127d25eb7f961494.tar.zst go-tangerine-35cd355c14d9a5266a7d4b11127d25eb7f961494.zip |
cmd,eth,rpc,tests: default coinbase
Diffstat (limited to 'cmd/geth')
-rw-r--r-- | cmd/geth/main.go | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 3428bb4cf..a05bb4db5 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -461,22 +461,7 @@ func execJSFiles(ctx *cli.Context) { func unlockAccount(ctx *cli.Context, am *accounts.Manager, addr string, i int) (addrHex, auth string) { var err error - // Load startup keys. XXX we are going to need a different format - - if !((len(addr) == 40) || (len(addr) == 42)) { // with or without 0x - var index int - index, err = strconv.Atoi(addr) - if err != nil { - utils.Fatalf("Invalid account address '%s'", addr) - } - - addrHex, err = am.AddressByIndex(index) - if err != nil { - utils.Fatalf("%v", err) - } - } else { - addrHex = addr - } + addrHex = utils.ParamToAddress(addr, am) // Attempt to unlock the account 3 times attempts := 3 for tries := 0; tries < attempts; tries++ { |