mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
cmd/geth: remove unused + docs
This commit is contained in:
parent
c503ac80a0
commit
8e1a7d9389
3 changed files with 2 additions and 15 deletions
|
|
@ -44,8 +44,7 @@ func byURL(a, b accounts.Account) int {
|
||||||
return a.URL.Cmp(b.URL)
|
return a.URL.Cmp(b.URL)
|
||||||
}
|
}
|
||||||
|
|
||||||
// AmbiguousAddrError is returned when attempting to unlock
|
// AmbiguousAddrError is returned when an address matches multiple files.
|
||||||
// an address for which more than one file exists.
|
|
||||||
type AmbiguousAddrError struct {
|
type AmbiguousAddrError struct {
|
||||||
Addr common.Address
|
Addr common.Address
|
||||||
Matches []accounts.Account
|
Matches []accounts.Account
|
||||||
|
|
|
||||||
|
|
@ -351,8 +351,7 @@ func geth(ctx *cli.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// startNode boots up the system node and all registered protocols, after which
|
// startNode boots up the system node and all registered protocols, after which
|
||||||
// it unlocks any requested accounts, and starts the RPC/IPC interfaces and the
|
// it starts the RPC/IPC interfaces and the miner.
|
||||||
// miner.
|
|
||||||
func startNode(ctx *cli.Context, stack *node.Node, isConsole bool) {
|
func startNode(ctx *cli.Context, stack *node.Node, isConsole bool) {
|
||||||
// Start up the node itself
|
// Start up the node itself
|
||||||
utils.StartNode(ctx, stack, isConsole)
|
utils.StartNode(ctx, stack, isConsole)
|
||||||
|
|
|
||||||
|
|
@ -45,14 +45,3 @@ func GetPassPhrase(text string, confirmation bool) string {
|
||||||
}
|
}
|
||||||
return password
|
return password
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetPassPhraseWithList retrieves the first password from the given list, or
|
|
||||||
// requests one interactively from the user, using the given prompt.
|
|
||||||
func GetPassPhraseWithList(text string, passwords []string) string {
|
|
||||||
// If a list of passwords was supplied, retrieve from them
|
|
||||||
if len(passwords) > 0 {
|
|
||||||
return passwords[0]
|
|
||||||
}
|
|
||||||
// Otherwise prompt the user for the password
|
|
||||||
return GetPassPhrase(text, true)
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue