diff options
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 5 |
1 files changed, 5 insertions, 0 deletions
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) |