diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-14 14:34:49 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:56 +0800 |
commit | df1a3cb68836db360977b302e0e69f25f0e3b0f4 (patch) | |
tree | 992d6011a96d5cfbf7530307a251154dfc7935b2 /core/genesis.go | |
parent | 61be5f8ef125d291507edd78f02e7d5c7148c22a (diff) | |
download | dexon-df1a3cb68836db360977b302e0e69f25f0e3b0f4.tar.gz dexon-df1a3cb68836db360977b302e0e69f25f0e3b0f4.tar.zst dexon-df1a3cb68836db360977b302e0e69f25f0e3b0f4.zip |
params: update genesis config
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 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) |