aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-11 17:04:08 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit2720479e78c0f4a61a958f73199bedf4b8ce6313 (patch)
tree3b5b37d29fc57bd59f6d09867428611a9e015eae /core/genesis.go
parent3e3089a27d917f4bb1327c5e8b5892927d2c7cfb (diff)
downloaddexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.tar
dexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.tar.gz
dexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.tar.bz2
dexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.tar.lz
dexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.tar.xz
dexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.tar.zst
dexon-2720479e78c0f4a61a958f73199bedf4b8ce6313.zip
core: populate dexon configuration in SetupGenesisBlock
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 5ee34c16e..f7e3f7a12 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),