From 6502e150041903b8b7e9395c27e4d1b115cff379 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 11 Oct 2018 17:04:08 +0800 Subject: core: populate dexon configuration in SetupGenesisBlock --- core/genesis.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/genesis.go') diff --git a/core/genesis.go b/core/genesis.go index 6982312d2..8dfd08524 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -261,6 +261,9 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block { govStateHelper.Stake(addr, account.PublicKey, account.Staked) } } + // Governance configuration. + govStateHelper.UpdateConfiguration(g.Config.Dexcon) + root := statedb.IntermediateRoot(false) head := &types.Header{ Number: new(big.Int).SetUint64(g.Number), -- cgit