Commit 90b22773 authored by Bruno Škvorc's avatar Bruno Škvorc Committed by Péter Szilágyi

cmd/puppeth: fixed a typo in a wizard input query (#16910)

parent 9e4f96a1
...@@ -107,7 +107,7 @@ func (w *wizard) deployNode(boot bool) { ...@@ -107,7 +107,7 @@ func (w *wizard) deployNode(boot bool) {
// Ethash based miners only need an etherbase to mine against // Ethash based miners only need an etherbase to mine against
fmt.Println() fmt.Println()
if infos.etherbase == "" { if infos.etherbase == "" {
fmt.Printf("What address should the miner user?\n") fmt.Printf("What address should the miner use?\n")
for { for {
if address := w.readAddress(); address != nil { if address := w.readAddress(); address != nil {
infos.etherbase = address.Hex() infos.etherbase = address.Hex()
...@@ -115,7 +115,7 @@ func (w *wizard) deployNode(boot bool) { ...@@ -115,7 +115,7 @@ func (w *wizard) deployNode(boot bool) {
} }
} }
} else { } else {
fmt.Printf("What address should the miner user? (default = %s)\n", infos.etherbase) fmt.Printf("What address should the miner use? (default = %s)\n", infos.etherbase)
infos.etherbase = w.readDefaultAddress(common.HexToAddress(infos.etherbase)).Hex() infos.etherbase = w.readDefaultAddress(common.HexToAddress(infos.etherbase)).Hex()
} }
} else if w.conf.Genesis.Config.Clique != nil { } else if w.conf.Genesis.Config.Clique != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment