From 78dac82d810fe4a1ad6878adbc789f909155f472 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Mon, 19 Nov 2018 14:36:36 +0800 Subject: governance: implement delegate/undelegate function and add tests (#33) Implement delegate/undelegate function to allow others to delegate it's fund to stake on a node. Also added governance contract tests. --- params/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'params/config.go') diff --git a/params/config.go b/params/config.go index 4dbbf6233..871954b59 100644 --- a/params/config.go +++ b/params/config.go @@ -61,7 +61,7 @@ var ( LambdaBA: 250, LambdaDKG: 2500, K: 0, - PhiRatio: 667000, + PhiRatio: 0.667, NotarySetSize: 4, DKGSetSize: 4, RoundInterval: 600000, @@ -100,7 +100,7 @@ var ( LambdaBA: 250, LambdaDKG: 2500, K: 0, - PhiRatio: 667000, + PhiRatio: 0.667, NotarySetSize: 4, DKGSetSize: 4, RoundInterval: 600000, @@ -209,7 +209,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"` -- cgit v1.2.3