diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-13 16:48:50 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 0f649b2cb78a3f35b870b2db94a92ec9297886b6 (patch) | |
tree | 7ca44acd0b0f631f2c78eb7680c0645abd18f72d /params/config.go | |
parent | 411758e3b2215a3baf324a1df3495ffcbdc8ecd6 (diff) | |
download | dexon-0f649b2cb78a3f35b870b2db94a92ec9297886b6.tar.gz dexon-0f649b2cb78a3f35b870b2db94a92ec9297886b6.tar.zst dexon-0f649b2cb78a3f35b870b2db94a92ec9297886b6.zip |
core: populate genesis CRS in genesis state
Diffstat (limited to 'params/config.go')
-rw-r--r-- | params/config.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/params/config.go b/params/config.go index 7e5d99f28..33e1f6562 100644 --- a/params/config.go +++ b/params/config.go @@ -186,6 +186,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"` @@ -200,7 +201,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, |