diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-18 21:56:12 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 7d53965dce0013f8c75a3ae556f57b8a22a484e6 (patch) | |
tree | 23be721529154fbde562f2a3f42affdd214f3045 /core | |
parent | da5366ade13a7e92a710db139cac423b8dea21d6 (diff) | |
download | go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.gz go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.bz2 go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.lz go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.xz go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.zst go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.zip |
core: set governance owner in genesis
Diffstat (limited to 'core')
-rw-r--r-- | core/genesis.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/genesis.go b/core/genesis.go index a176deb00..c9f4e2499 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -255,7 +255,6 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { govStateHelper := vm.GovernanceStateHelper{statedb} for addr, account := range g.Alloc { - fmt.Println(account) statedb.AddBalance(addr, new(big.Int).Sub(account.Balance, account.Staked)) statedb.SetCode(addr, account.Code) statedb.SetNonce(addr, account.Nonce) @@ -277,6 +276,9 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { govStateHelper.Stake(addr, account.PublicKey, account.Staked) } } + // Owner. + govStateHelper.SetOwner(g.Config.Dexcon.Owner) + // Governance configuration. govStateHelper.UpdateConfiguration(g.Config.Dexcon) |