From 2085e02f2c4eded459dbb1d2c706fbda7cd56cbe Mon Sep 17 00:00:00 2001 From: dinhln89 Date: Tue, 5 Jun 2018 11:21:29 +0700 Subject: [PATCH] Add config epoch for puppeth cli. --- .gitmodules | 3 --- cmd/puppeth/wizard_genesis.go | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitmodules b/.gitmodules index 32bdb3b6e5..e69de29bb2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "tests"] - path = tests/testdata - url = https://github.com/ethereum/tests diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go index 799384985a..4c38963ffb 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -103,6 +103,10 @@ func (w *wizard) makeGenesis() { 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: log.Crit("Invalid consensus engine choice", "choice", choice) }