diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-18 21:56:12 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:50 +0800 |
commit | 17fb63161b6672c0e8101e5fde709b1b7ab2df23 (patch) | |
tree | 01d42174a12f6591964703e7eca998ad25ad6f81 /params/config.go | |
parent | 98d400f5e003b5b8589f73ac7c196f11708f09eb (diff) | |
download | dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.tar dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.tar.gz dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.tar.bz2 dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.tar.lz dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.tar.xz dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.tar.zst dexon-17fb63161b6672c0e8101e5fde709b1b7ab2df23.zip |
core: set governance owner in genesis
Diffstat (limited to 'params/config.go')
-rw-r--r-- | params/config.go | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/params/config.go b/params/config.go index 8a9fa1827..45f515c7a 100644 --- a/params/config.go +++ b/params/config.go @@ -223,18 +223,19 @@ func (c *CliqueConfig) String() string { // DexconConfig is the consensus engine configs for DEXON consensus. type DexconConfig struct { - GenesisCRSText string `json:"genesisCRSText"` - NumChains uint32 `json:"numChains"` - LambdaBA uint64 `json:"lambdaBA"` - LambdaDKG uint64 `json:"lambdaDKG"` - K int `json:"k"` - PhiRatio float32 `json:"phiRatio"` - NotarySetSize uint32 `json:"notarySetSize"` - DKGSetSize uint32 `json:"dkgSetSize"` - RoundInterval uint64 `json:"roundInterval"` - MinBlockInterval uint64 `json:"minBlockInterval"` - MaxBlockInterval uint64 `json:"maxBlockInterval"` - BlockReward *big.Int `json:"blockReward"` + Owner common.Address `json:"owner"` + GenesisCRSText string `json:"genesisCRSText"` + NumChains uint32 `json:"numChains"` + LambdaBA uint64 `json:"lambdaBA"` + LambdaDKG uint64 `json:"lambdaDKG"` + K int `json:"k"` + PhiRatio float32 `json:"phiRatio"` + NotarySetSize uint32 `json:"notarySetSize"` + DKGSetSize uint32 `json:"dkgSetSize"` + RoundInterval uint64 `json:"roundInterval"` + MinBlockInterval uint64 `json:"minBlockInterval"` + MaxBlockInterval uint64 `json:"maxBlockInterval"` + BlockReward *big.Int `json:"blockReward"` } type dexconConfigSpecMarshaling struct { @@ -243,7 +244,8 @@ type dexconConfigSpecMarshaling struct { // String implements the stringer interface, returning the consensus engine details. func (d *DexconConfig) String() string { - return fmt.Sprintf("{GenesisCRSText: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v MaxBlockInterval: %v BlockReward: %v", + return fmt.Sprintf("{Owner: %v GenesisCRSText: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v MaxBlockInterval: %v BlockReward: %v", + d.Owner, d.GenesisCRSText, d.NumChains, d.LambdaBA, |