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-04-09 21:32:49 +0800
commit6502e150041903b8b7e9395c27e4d1b115cff379 (patch)
tree194e0d057db5516ddcb20310d0baba9ea9079046 /core/genesis.go
parent9b6a659b4de7c9b1c2f331b880a1397159181600 (diff)
downloaddexon-6502e150041903b8b7e9395c27e4d1b115cff379.tar.gz
dexon-6502e150041903b8b7e9395c27e4d1b115cff379.tar.zst
dexon-6502e150041903b8b7e9395c27e4d1b115cff379.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 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),