diff options
Diffstat (limited to 'core/genesis.go')
-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) |