diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-19 14:36:36 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 9181d784fb453423c1a7dafe7c182feafd437376 (patch) | |
tree | 889f51b8751b272c8f6a39a4d9e6d34cf671c4b9 /params/gen_dexcon_config.go | |
parent | be1f06a3acfc85f90a2a9f6dec3235b5bf1f0099 (diff) | |
download | dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.gz dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.bz2 dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.lz dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.xz dexon-9181d784fb453423c1a7dafe7c182feafd437376.tar.zst dexon-9181d784fb453423c1a7dafe7c182feafd437376.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/gen_dexcon_config.go')
-rw-r--r-- | params/gen_dexcon_config.go | 4 |
1 files changed, 2 insertions, 2 deletions
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"` |