diff options
Diffstat (limited to 'params')
-rw-r--r-- | params/config.go | 6 | ||||
-rw-r--r-- | params/gen_dexcon_config.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/params/config.go b/params/config.go index 4b76d0f11..f860082ee 100644 --- a/params/config.go +++ b/params/config.go @@ -54,7 +54,7 @@ var ( LambdaBA: 250, LambdaDKG: 2500, K: 0, - PhiRatio: 667000, + PhiRatio: 0.667, NotarySetSize: 4, DKGSetSize: 4, RoundInterval: 600000, @@ -93,7 +93,7 @@ var ( LambdaBA: 250, LambdaDKG: 2500, K: 0, - PhiRatio: 667000, + PhiRatio: 0.667, NotarySetSize: 4, DKGSetSize: 4, RoundInterval: 600000, @@ -202,7 +202,7 @@ type DexconConfig struct { NumChains uint32 `json:"numChains"` LambdaBA uint64 `json:"lambdaBA"` LambdaDKG uint64 `json:"lambdaDKG"` - K int `json:"k"` + K uint32 `json:"k"` PhiRatio float32 `json:"phiRatio"` NotarySetSize uint32 `json:"notarySetSize"` DKGSetSize uint32 `json:"dkgSetSize"` diff --git a/params/gen_dexcon_config.go b/params/gen_dexcon_config.go index 6633b38f3..9cd9395cc 100644 --- a/params/gen_dexcon_config.go +++ b/params/gen_dexcon_config.go @@ -23,7 +23,7 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) { NumChains uint32 `json:"numChains"` LambdaBA uint64 `json:"lambdaBA"` LambdaDKG uint64 `json:"lambdaDKG"` - K int `json:"k"` + K uint32 `json:"k"` PhiRatio float32 `json:"phiRatio"` NotarySetSize uint32 `json:"notarySetSize"` DKGSetSize uint32 `json:"dkgSetSize"` @@ -59,7 +59,7 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error { NumChains *uint32 `json:"numChains"` LambdaBA *uint64 `json:"lambdaBA"` LambdaDKG *uint64 `json:"lambdaDKG"` - K *int `json:"k"` + K *uint32 `json:"k"` PhiRatio *float32 `json:"phiRatio"` NotarySetSize *uint32 `json:"notarySetSize"` DKGSetSize *uint32 `json:"dkgSetSize"` |