aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-06-21 11:01:12 +0800
committerzelig <viktor.tron@gmail.com>2015-07-03 06:28:12 +0800
commit09b69831758cb1001027fbb59dff9b3fbe20bbb2 (patch)
tree5a333fe325b63f7fdfdfb16c84dca5756d7292a4 /cmd/geth/main.go
parent65a26e40a886c48031a7936d3cc9bf341e7165f4 (diff)
downloaddexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.tar
dexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.tar.gz
dexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.tar.bz2
dexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.tar.lz
dexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.tar.xz
dexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.tar.zst
dexon-09b69831758cb1001027fbb59dff9b3fbe20bbb2.zip
no primary when listing accounts
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index b20c6d85d..673a08d45 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -497,7 +497,7 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
for i, account := range accounts {
if len(account) > 0 {
if account == "primary" {
- utils.Fatalf("the 'primary' keyword is deprecated. You can use indexes, but the indexes are not permanent, they can change if you add external keys, export your keys or copy your keystore to another node.")
+ utils.Fatalf("the 'primary' keyword is deprecated. You can use integer indexes, but the indexes are not permanent, they can change if you add external keys, export your keys or copy your keystore to another node.")
}
unlockAccount(ctx, am, account, i)
}
@@ -526,10 +526,8 @@ func accountList(ctx *cli.Context) {
if err != nil {
utils.Fatalf("Could not list accounts: %v", err)
}
- name := "Primary"
for i, acct := range accts {
- fmt.Printf("%s #%d: %x\n", name, i, acct)
- name = "Account"
+ fmt.Printf("Account #%d: %x\n", i, acct)
}
}