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 622429214..50e52d47f 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) |