Skip to content

cmd/devp2p: handle password prompt error in loadSigningKey#35346

Open
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:cmd-devp2p-dns-password-error
Open

cmd/devp2p: handle password prompt error in loadSigningKey#35346
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:cmd-devp2p-dns-password-error

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Check the error returned by PromptPassword in loadSigningKey.
  • Exit early instead of continuing with an empty password when the prompt fails.

Test plan

  • go build ./cmd/devp2p/

PromptPassword errors were ignored when loading a DNS signing key,
which could proceed with an empty password. Fail early when reading
the password fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant