aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-13 16:58:32 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-13 16:58:32 +0800
commit6dec90464dc2a263a5bcb72fdbff6c5439fb07dc (patch)
treebc237b0b533154543f733901143f7b077b1282d8
parent28d6b30c0f4b11aceae93e73d57c34aab112ca21 (diff)
parentb5b53d8b32758fba1ad675c0bd51aa4f83aed268 (diff)
downloaddexon-6dec90464dc2a263a5bcb72fdbff6c5439fb07dc.tar.gz
dexon-6dec90464dc2a263a5bcb72fdbff6c5439fb07dc.tar.zst
dexon-6dec90464dc2a263a5bcb72fdbff6c5439fb07dc.zip
Merge pull request #946 from Gustav-Simonsson/fix_geth_unlock_account
Fix hex conversion in --unlock and log when successful
-rw-r--r--cmd/geth/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 1582953f7..b4d7feed1 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -368,10 +368,11 @@ func unlockAccount(ctx *cli.Context, am *accounts.Manager, account string) (pass
if len(account) == 0 {
utils.Fatalf("Invalid account address '%s'", account)
}
- err = am.Unlock(common.StringToAddress(account), passphrase)
+ err = am.Unlock(common.HexToAddress(account), passphrase)
if err != nil {
utils.Fatalf("Unlock account failed '%v'", err)
}
+ fmt.Printf("Account '%s' unlocked.\n", account)
return
}