Skip to content

Commit 09b6983

Browse files
committed
no primary when listing accounts
1 parent 65a26e4 commit 09b6983

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎cmd/geth/main.go‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
497497
for i, account := range accounts {
498498
if len(account) > 0 {
499499
if account == "primary" {
500-
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.")
500+
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.")
501501
}
502502
unlockAccount(ctx, am, account, i)
503503
}
@@ -526,10 +526,8 @@ func accountList(ctx *cli.Context) {
526526
if err != nil {
527527
utils.Fatalf("Could not list accounts: %v", err)
528528
}
529-
name := "Primary"
530529
for i, acct := range accts {
531-
fmt.Printf("%s #%d: %x\n", name, i, acct)
532-
name = "Account"
530+
fmt.Printf("Account #%d: %x\n", i, acct)
533531
}
534532
}
535533

0 commit comments

Comments
 (0)