From cd90968df471ed9c44d8c8c6430baeb24c9ab6e8 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 19 Nov 2018 14:36:36 +0800 Subject: governance: implement delegate/undelegate function and add tests (#33) Implement delegate/undelegate function to allow others to delegate it's fund to stake on a node. Also added governance contract tests. --- core/genesis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/genesis.go') diff --git a/core/genesis.go b/core/genesis.go index 5d8c54219..09ab5b701 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -303,8 +303,8 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { } // Genesis CRS. - crs := crypto.Keccak256([]byte(g.Config.Dexcon.GenesisCRSText)) - govStateHelper.PushCRS(common.BytesToHash(crs)) + crs := crypto.Keccak256Hash([]byte(g.Config.Dexcon.GenesisCRSText)) + govStateHelper.PushCRS(crs) // Round 0 height. govStateHelper.PushRoundHeight(big.NewInt(0)) -- cgit v1.2.3