aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go5
1 files changed, 5 insertions, 0 deletions
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)