mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd/geth: remove unused code
This commit is contained in:
parent
e1a7cc7aff
commit
3eadab6aa1
1 changed files with 0 additions and 27 deletions
|
|
@ -220,33 +220,6 @@ func accountList(ctx *cli.Context) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func ambiguousAddrRecovery(ks *keystore.KeyStore, err *keystore.AmbiguousAddrError, auth string) accounts.Account {
|
|
||||||
fmt.Printf("Multiple key files exist for address %x:\n", err.Addr)
|
|
||||||
for _, a := range err.Matches {
|
|
||||||
fmt.Println(" ", a.URL)
|
|
||||||
}
|
|
||||||
fmt.Println("Testing your password against all of them...")
|
|
||||||
var match *accounts.Account
|
|
||||||
for i, a := range err.Matches {
|
|
||||||
if e := ks.Unlock(a, auth); e == nil {
|
|
||||||
match = &err.Matches[i]
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if match == nil {
|
|
||||||
utils.Fatalf("None of the listed files could be unlocked.")
|
|
||||||
return accounts.Account{}
|
|
||||||
}
|
|
||||||
fmt.Printf("Your password unlocked %s\n", match.URL)
|
|
||||||
fmt.Println("In order to avoid this warning, you need to remove the following duplicate key files:")
|
|
||||||
for _, a := range err.Matches {
|
|
||||||
if a != *match {
|
|
||||||
fmt.Println(" ", a.URL)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return *match
|
|
||||||
}
|
|
||||||
|
|
||||||
// accountCreate creates a new account into the keystore defined by the CLI flags.
|
// accountCreate creates a new account into the keystore defined by the CLI flags.
|
||||||
func accountCreate(ctx *cli.Context) error {
|
func accountCreate(ctx *cli.Context) error {
|
||||||
cfg := loadBaseConfig(ctx)
|
cfg := loadBaseConfig(ctx)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue