diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-19 16:31:44 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:50 +0800 |
commit | b52b1b2106f075260674660638aa60fe5ec81f87 (patch) | |
tree | 84f1d5d95d143fe0f20daed8aa42ac85b4a6363e /core/genesis.go | |
parent | 7febfae8bba63f6b7e1326b22437dee38989c400 (diff) | |
download | dexon-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.go | 8 |
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), |