aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-13 16:48:50 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:52 +0800
commitb12ac4fda0c31d037a070ec3841c639f0bd48c16 (patch)
treefa41492e377cb2ec54bfb8b41b2c60dd8f0ba15a /params
parentefbf1cfb810fd80819df901526052159e4743680 (diff)
downloaddexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.tar
dexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.tar.gz
dexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.tar.bz2
dexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.tar.lz
dexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.tar.xz
dexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.tar.zst
dexon-b12ac4fda0c31d037a070ec3841c639f0bd48c16.zip
core: populate genesis CRS in genesis state
Diffstat (limited to 'params')
-rw-r--r--params/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go
index 0c64fb6bf..0ccc2fbc8 100644
--- a/params/config.go
+++ b/params/config.go
@@ -219,6 +219,7 @@ 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"`
@@ -233,7 +234,8 @@ type DexconConfig struct {
// String implements the stringer interface, returning the consensus engine details.
func (d *DexconConfig) String() string {
- return fmt.Sprintf("{NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v MaxBlockInterval: %v",
+ 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",
+ d.GenesisCRSText,
d.NumChains,
d.LambdaBA,
d.LambdaDKG,