aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-19 14:36:36 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commitcd90968df471ed9c44d8c8c6430baeb24c9ab6e8 (patch)
treeb2397a22523b717c1b9d30f9244a07947eb4c488 /core/genesis.go
parent637fa3808231dea5083a8fd5a7b10c318902d9fa (diff)
downloaddexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.gz
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.bz2
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.lz
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.xz
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.zst
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.zip
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.
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go4
1 files changed, 2 insertions, 2 deletions
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))