mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +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(argNameTopic, &topicStr)
|
||||||
checkStringArg(argNamePub, &pubStr)
|
checkStringArg(argNamePub, &pubStr)
|
||||||
|
|
||||||
|
if len(enode) > 0 {
|
||||||
|
prefix := "enode://"
|
||||||
|
if enode[:len(prefix)] != prefix {
|
||||||
|
enode = prefix + enode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if p > 0 {
|
if p > 0 {
|
||||||
pow = float64(p)
|
pow = float64(p)
|
||||||
}
|
}
|
||||||
|
|
@ -317,7 +324,7 @@ func configureChat() {
|
||||||
|
|
||||||
if !isAsymmetric && !testMode {
|
if !isAsymmetric && !testMode {
|
||||||
fmt.Printf("Please enter the password: ")
|
fmt.Printf("Please enter the password: ")
|
||||||
pass, err := terminal.ReadPassword(syscall.Stdin)
|
pass, err := terminal.ReadPassword(int(syscall.Stdin))
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("Error: %s \n", err)
|
fmt.Printf("Error: %s \n", err)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue