From f4936aa1eb7fa01f56c28f081af266c2a4924a61 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sat, 13 Oct 2018 16:48:50 +0800 Subject: core: populate genesis CRS in genesis state --- params/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'params') diff --git a/params/config.go b/params/config.go index 901a93a9f..967e70b23 100644 --- a/params/config.go +++ b/params/config.go @@ -218,6 +218,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"` @@ -232,7 +233,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, -- cgit v1.2.3