aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-18 21:56:12 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commit7d53965dce0013f8c75a3ae556f57b8a22a484e6 (patch)
tree23be721529154fbde562f2a3f42affdd214f3045 /params/config.go
parentda5366ade13a7e92a710db139cac423b8dea21d6 (diff)
downloadgo-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar
go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.gz
go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.bz2
go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.lz
go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.xz
go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.tar.zst
go-tangerine-7d53965dce0013f8c75a3ae556f57b8a22a484e6.zip
core: set governance owner in genesis
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go28
1 files changed, 15 insertions, 13 deletions
diff --git a/params/config.go b/params/config.go
index fdf716661..c5437256b 100644
--- a/params/config.go
+++ b/params/config.go
@@ -232,18 +232,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 {
@@ -252,7 +253,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,