Add config epoch for puppeth cli.

This commit is contained in:
dinhln89 2018-06-05 11:21:29 +07:00
parent fdcd97950d
commit 2085e02f2c
2 changed files with 4 additions and 3 deletions

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "tests"]
path = tests/testdata
url = https://github.com/ethereum/tests

View file

@ -103,6 +103,10 @@ func (w *wizard) makeGenesis() {
copy(genesis.ExtraData[32+i*common.AddressLength:], signer[:]) copy(genesis.ExtraData[32+i*common.AddressLength:], signer[:])
} }
fmt.Println()
fmt.Println("How many blocks per checkpoint? (default = 990)")
genesis.Config.Clique.Epoch = uint64(w.readDefaultInt(990))
default: default:
log.Crit("Invalid consensus engine choice", "choice", choice) log.Crit("Invalid consensus engine choice", "choice", choice)
} }