From 217f52e19e48c8d3765099cfc36c9dfd72703b95 Mon Sep 17 00:00:00 2001 From: Nguyen Ba Tam Date: Thu, 26 Jul 2018 16:03:18 +0700 Subject: [PATCH] update epoch in genesis --- cmd/puppeth/wizard_genesis.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go index 89423e8b55d4..d0f4cf79b261 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -105,7 +105,8 @@ func (w *wizard) makeGenesis() { fmt.Println() fmt.Println("How many blocks per checkpoint? (default = 990)") - genesis.Config.Clique.RewardCheckpoint = uint64(w.readDefaultInt(990)) + genesis.Config.Clique.Epoch = uint64(w.readDefaultInt(990)) + genesis.Config.Clique.RewardCheckpoint = genesis.Config.Clique.Epoch default: log.Crit("Invalid consensus engine choice", "choice", choice)