cmd/geth: remove unused + docs

This commit is contained in:
Martin Holst Swende 2024-11-06 18:44:04 +01:00
parent c503ac80a0
commit 8e1a7d9389
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
3 changed files with 2 additions and 15 deletions

View file

@ -44,8 +44,7 @@ func byURL(a, b accounts.Account) int {
return a.URL.Cmp(b.URL)
}
// AmbiguousAddrError is returned when attempting to unlock
// an address for which more than one file exists.
// AmbiguousAddrError is returned when an address matches multiple files.
type AmbiguousAddrError struct {
Addr common.Address
Matches []accounts.Account

View file

@ -351,8 +351,7 @@ func geth(ctx *cli.Context) error {
}
// 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
// miner.
// it starts the RPC/IPC interfaces and the miner.
func startNode(ctx *cli.Context, stack *node.Node, isConsole bool) {
// Start up the node itself
utils.StartNode(ctx, stack, isConsole)

View file

@ -45,14 +45,3 @@ func GetPassPhrase(text string, confirmation bool) string {
}
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)
}