diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 12:43:39 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 3197e1ec1dcf0c79c130c335c25f2d751e129de6 (patch) | |
tree | e4b6dca2577edbbd19150990c5acc13a982d1c13 /params/gen_dexcon_config.go | |
parent | e6c828724c63cd97879c14436ffcd2824ace211a (diff) | |
download | dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.tar dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.tar.gz dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.tar.bz2 dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.tar.lz dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.tar.xz dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.tar.zst dexon-3197e1ec1dcf0c79c130c335c25f2d751e129de6.zip |
core: vm: governance: remove maxInterval
Diffstat (limited to 'params/gen_dexcon_config.go')
-rw-r--r-- | params/gen_dexcon_config.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/params/gen_dexcon_config.go b/params/gen_dexcon_config.go index f378b4588..e1be574c0 100644 --- a/params/gen_dexcon_config.go +++ b/params/gen_dexcon_config.go @@ -28,7 +28,6 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) { DKGSetSize uint32 `json:"dkgSetSize"` RoundInterval uint64 `json:"roundInterval"` MinBlockInterval uint64 `json:"minBlockInterval"` - MaxBlockInterval uint64 `json:"maxBlockInterval"` } var enc DexconConfig enc.GenesisCRSText = d.GenesisCRSText @@ -44,7 +43,6 @@ func (d DexconConfig) MarshalJSON() ([]byte, error) { enc.DKGSetSize = d.DKGSetSize enc.RoundInterval = d.RoundInterval enc.MinBlockInterval = d.MinBlockInterval - enc.MaxBlockInterval = d.MaxBlockInterval return json.Marshal(&enc) } @@ -64,7 +62,6 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error { DKGSetSize *uint32 `json:"dkgSetSize"` RoundInterval *uint64 `json:"roundInterval"` MinBlockInterval *uint64 `json:"minBlockInterval"` - MaxBlockInterval *uint64 `json:"maxBlockInterval"` } var dec DexconConfig if err := json.Unmarshal(input, &dec); err != nil { @@ -109,8 +106,5 @@ func (d *DexconConfig) UnmarshalJSON(input []byte) error { if dec.MinBlockInterval != nil { d.MinBlockInterval = *dec.MinBlockInterval } - if dec.MaxBlockInterval != nil { - d.MaxBlockInterval = *dec.MaxBlockInterval - } return nil } |