aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-19 16:31:44 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:50 +0800
commitb52b1b2106f075260674660638aa60fe5ec81f87 (patch)
tree84f1d5d95d143fe0f20daed8aa42ac85b4a6363e /core/genesis.go
parent7febfae8bba63f6b7e1326b22437dee38989c400 (diff)
downloaddexon-b52b1b2106f075260674660638aa60fe5ec81f87.tar
dexon-b52b1b2106f075260674660638aa60fe5ec81f87.tar.gz
dexon-b52b1b2106f075260674660638aa60fe5ec81f87.tar.bz2
dexon-b52b1b2106f075260674660638aa60fe5ec81f87.tar.lz
dexon-b52b1b2106f075260674660638aa60fe5ec81f87.tar.xz
dexon-b52b1b2106f075260674660638aa60fe5ec81f87.tar.zst
dexon-b52b1b2106f075260674660638aa60fe5ec81f87.zip
core: vm: add blockReward to governance
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/genesis.go b/core/genesis.go
index c9f4e2499..4d3edb3e8 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -276,16 +276,16 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block {
govStateHelper.Stake(addr, account.PublicKey, account.Staked)
}
}
+ // Genesis CRS.
+ crs := crypto.Keccak256([]byte(g.Config.Dexcon.GenesisCRSText))
+ govStateHelper.PushCRS(common.BytesToHash(crs))
+
// Owner.
govStateHelper.SetOwner(g.Config.Dexcon.Owner)
// Governance configuration.
govStateHelper.UpdateConfiguration(g.Config.Dexcon)
- // Genesis CRS.
- crs := crypto.Keccak256([]byte(g.Config.Dexcon.GenesisCRSText))
- govStateHelper.PushCRS(common.BytesToHash(crs))
-
root := statedb.IntermediateRoot(false)
head := &types.Header{
Number: new(big.Int).SetUint64(g.Number),