diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-19 16:31:44 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 93563f41410b964454f23229cfabe1ec1ba735f5 (patch) | |
tree | 4fbae033c7abf67076e5e04fd43a3931c8525392 /core/genesis.go | |
parent | 9ec8fa02e86e992f8dc6a1f230b2e406178f24de (diff) | |
download | go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.tar go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.tar.gz go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.tar.bz2 go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.tar.lz go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.tar.xz go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.tar.zst go-tangerine-93563f41410b964454f23229cfabe1ec1ba735f5.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), |