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 13:49:52 +0800
commit67415fa1080c4189c997d063942cc0cdc60bf3b6 (patch)
treea5e9b4e4f0e545930a68c2ee8c595cec325f3bad /core/genesis.go
parent6c299585031eec0244dccac371ef376c10e99f79 (diff)
downloaddexon-67415fa1080c4189c997d063942cc0cdc60bf3b6.tar.gz
dexon-67415fa1080c4189c997d063942cc0cdc60bf3b6.tar.zst
dexon-67415fa1080c4189c997d063942cc0cdc60bf3b6.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),