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@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit1df4ff9e24539a7a99c245fed3a47e8198f26de9 (patch)
tree4722e6f8db34d072795db3fdf943daa65f359eb3 /core/genesis.go
parentb6549cddb95fe6357acd129e191a0944416593ed (diff)
downloadgo-tangerine-1df4ff9e24539a7a99c245fed3a47e8198f26de9.tar.gz
go-tangerine-1df4ff9e24539a7a99c245fed3a47e8198f26de9.tar.zst
go-tangerine-1df4ff9e24539a7a99c245fed3a47e8198f26de9.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)