From 1df4ff9e24539a7a99c245fed3a47e8198f26de9 Mon Sep 17 00:00:00 2001 From: Sonic Date: Tue, 13 Nov 2018 17:51:27 +0800 Subject: core: push height of round 0 in genesis block (#17) * core: push height of round 0 in genesis block * vm: fix governance dispatch method name mismatch with abi also rename RoundHeightLoc to roundHeightLoc --- core/genesis.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/genesis.go') diff --git a/core/genesis.go b/core/genesis.go index 8cd6b4807..6eddf851d 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -306,6 +306,9 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { crs := crypto.Keccak256([]byte(g.Config.Dexcon.GenesisCRSText)) govStateHelper.PushCRS(common.BytesToHash(crs)) + // Round 0 height. + govStateHelper.PushRoundHeight(big.NewInt(0)) + // Owner. govStateHelper.SetOwner(g.Config.Dexcon.Owner) -- cgit