From 528945c964ded6185d6fe8858986f2ad07e892a5 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 14 Jan 2019 14:34:49 +0800 Subject: params: update genesis config --- core/genesis.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/genesis.go') diff --git a/core/genesis.go b/core/genesis.go index 2974d20d1..042084b34 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -306,6 +306,11 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { } } + if g.Config.Dexcon.NextHalvingSupply.Cmp(totalSupply) <= 0 { + panic(fmt.Sprintf("invalid genesis found, totalSupply: %s, nextHavlingSupply: %s", + totalSupply, g.Config.Dexcon.NextHalvingSupply)) + } + // Genesis CRS. crs := crypto.Keccak256Hash([]byte(g.Config.Dexcon.GenesisCRSText)) govStateHelper.PushCRS(crs) -- cgit v1.2.3