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-03-12 12:19:09 +0800
commit3af359c1680a260bac6729bcc6c5a85ded247109 (patch)
treeb9a15cefad13e6b52db5daeabaa0a608ce2a076e /core/genesis.go
parentb69f7b9987d0e373c34a1bf7bfd7fa93e1dc5b88 (diff)
downloaddexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.gz
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.bz2
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.lz
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.xz
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.zst
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.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 8dbac78a8..1b9f85d94 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),