aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-19 14:36:36 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commitcd90968df471ed9c44d8c8c6430baeb24c9ab6e8 (patch)
treeb2397a22523b717c1b9d30f9244a07947eb4c488 /params/config.go
parent637fa3808231dea5083a8fd5a7b10c318902d9fa (diff)
downloaddexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.gz
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.bz2
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.lz
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.xz
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.tar.zst
dexon-cd90968df471ed9c44d8c8c6430baeb24c9ab6e8.zip
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.
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go6
1 files changed, 3 insertions, 3 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"`