aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-07 21:13:11 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-07 21:13:11 +0800
commit0c9c5439d44990817dbba2323971993149da2cce (patch)
tree4b77244b1ce72160a1434036977c7a473781665c /cmd/geth/main.go
parent9e7d5d9d3b4ad686409fec7beb08792d38052a2c (diff)
parentd673c34c8d4ae83a3765ed44ae9d0fb7ce1aa3c9 (diff)
downloadgo-tangerine-0c9c5439d44990817dbba2323971993149da2cce.tar
go-tangerine-0c9c5439d44990817dbba2323971993149da2cce.tar.gz
go-tangerine-0c9c5439d44990817dbba2323971993149da2cce.tar.bz2
go-tangerine-0c9c5439d44990817dbba2323971993149da2cce.tar.lz
go-tangerine-0c9c5439d44990817dbba2323971993149da2cce.tar.xz
go-tangerine-0c9c5439d44990817dbba2323971993149da2cce.tar.zst
go-tangerine-0c9c5439d44990817dbba2323971993149da2cce.zip
Merge branch 'release/0.9.36' into develop
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go23
1 files changed, 13 insertions, 10 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index bb6ddc1e2..5ac93a983 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -49,7 +49,7 @@ import (
const (
ClientIdentifier = "Geth"
- Version = "0.9.35"
+ Version = "0.9.36"
)
var (
@@ -458,17 +458,20 @@ func execJSFiles(ctx *cli.Context) {
func unlockAccount(ctx *cli.Context, am *accounts.Manager, addr string, i int) (addrHex, auth string) {
var err error
- addrHex = utils.ParamToAddress(addr, am)
- // Attempt to unlock the account 3 times
- attempts := 3
- for tries := 0; tries < attempts; tries++ {
- msg := fmt.Sprintf("Unlocking account %s | Attempt %d/%d", addr, tries+1, attempts)
- auth = getPassPhrase(ctx, msg, false, i)
- err = am.Unlock(common.HexToAddress(addrHex), auth)
- if err == nil {
- break
+ addrHex, err = utils.ParamToAddress(addr, am)
+ if err == nil {
+ // Attempt to unlock the account 3 times
+ attempts := 3
+ for tries := 0; tries < attempts; tries++ {
+ msg := fmt.Sprintf("Unlocking account %s | Attempt %d/%d", addr, tries+1, attempts)
+ auth = getPassPhrase(ctx, msg, false, i)
+ err = am.Unlock(common.HexToAddress(addrHex), auth)
+ if err == nil {
+ break
+ }
}
}
+
if err != nil {
utils.Fatalf("Unlock account failed '%v'", err)
}