From df1a3cb68836db360977b302e0e69f25f0e3b0f4 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 0948569f1..c378c0ab2 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -307,6 +307,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