aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2018-11-13 17:51:27 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commit16122f0041756465198c560d9a486f610efcc787 (patch)
tree81a05d216f1044c79e4c5e8ff0a3019d05dbbcd9 /core/genesis.go
parent9992f3a4865b3cf8ded9cbb9911f441190fd32ec (diff)
downloaddexon-16122f0041756465198c560d9a486f610efcc787.tar
dexon-16122f0041756465198c560d9a486f610efcc787.tar.gz
dexon-16122f0041756465198c560d9a486f610efcc787.tar.bz2
dexon-16122f0041756465198c560d9a486f610efcc787.tar.lz
dexon-16122f0041756465198c560d9a486f610efcc787.tar.xz
dexon-16122f0041756465198c560d9a486f610efcc787.tar.zst
dexon-16122f0041756465198c560d9a486f610efcc787.zip
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
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go3
1 files changed, 3 insertions, 0 deletions
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)