mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
whisper: parameter fixed
This commit is contained in:
parent
c677030489
commit
bfc59eaf8b
1 changed files with 8 additions and 1 deletions
|
|
@ -132,6 +132,13 @@ func parseArgs() {
|
|||
checkStringArg(argNameTopic, &topicStr)
|
||||
checkStringArg(argNamePub, &pubStr)
|
||||
|
||||
if len(enode) > 0 {
|
||||
prefix := "enode://"
|
||||
if enode[:len(prefix)] != prefix {
|
||||
enode = prefix + enode
|
||||
}
|
||||
}
|
||||
|
||||
if p > 0 {
|
||||
pow = float64(p)
|
||||
}
|
||||
|
|
@ -317,7 +324,7 @@ func configureChat() {
|
|||
|
||||
if !isAsymmetric && !testMode {
|
||||
fmt.Printf("Please enter the password: ")
|
||||
pass, err := terminal.ReadPassword(syscall.Stdin)
|
||||
pass, err := terminal.ReadPassword(int(syscall.Stdin))
|
||||
fmt.Println()
|
||||
if err != nil {
|
||||
fmt.Printf("Error: %s \n", err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue