Update wizard_genesis.go

This commit is contained in:
alexwang 2020-02-13 00:19:54 +08:00 committed by GitHub
parent c24c0614ce
commit 551f7fbf1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ func (w *wizard) makeGenesis() {
if w.consensusType != "" {
choice = w.consensusType
fmt.Println(w.consensusType)
}else{
} else {
choice = w.read()
}
switch {
@ -84,7 +84,7 @@ func (w *wizard) makeGenesis() {
fmt.Println("How many seconds should blocks take? (default = 15)")
if w.blocksTime > 0 {
genesis.Config.Clique.Period = w.blocksTime
}else{
} else {
genesis.Config.Clique.Period = uint64(w.readDefaultInt(15))
}
@ -133,7 +133,7 @@ func (w *wizard) makeGenesis() {
}
continue
}
}else{
} else {
for {
// Read the address of the account to fund
if address := w.readAddress(); address != nil {