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@byzantine-lab.io>2019-06-12 17:23:39 +0800
commit8250fd5357e8a9c4b634cf289489ce2c4ec3470c (patch)
tree3ce13f606486f0032b17579397551cafb2af5191 /params
parent3ac89bf83d2d65a5410692e0fe664a1a7c079055 (diff)
downloadgo-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.tar
go-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.tar.gz
go-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.tar.bz2
go-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.tar.lz
go-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.tar.xz
go-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.tar.zst
go-tangerine-8250fd5357e8a9c4b634cf289489ce2c4ec3470c.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 1b3b39b29..1ea2ab3d2 100644
--- a/params/config.go
+++ b/params/config.go
@@ -228,6 +228,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"`
@@ -242,7 +243,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,