diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-09-27 14:27:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-27 14:27:18 +0800 |
commit | 506014f22faba150cd7197e7dd817e72a914dc84 (patch) | |
tree | 3f61287a4578c31c447cc8d9283fc3c728dd6cb7 /core/types | |
parent | 9c2f700be09c27e8a8d12fc5bc0ccd017d408a32 (diff) | |
download | dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.gz dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.bz2 dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.lz dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.xz dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.tar.zst dexon-consensus-506014f22faba150cd7197e7dd817e72a914dc84.zip |
core: update governance interface and config (#145)
1) Remove RoundHeight from config.
2) NotarySet is not from governance contract, we get Node set intead.
Notary set is caculated from the NodeSet using CRS.
3) CRS is not in the governance interface.
Diffstat (limited to 'core/types')
-rw-r--r-- | core/types/config.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/types/config.go b/core/types/config.go index 034853e..9434d62 100644 --- a/core/types/config.go +++ b/core/types/config.go @@ -25,9 +25,6 @@ import ( // Config stands for Current Configuration Parameters. type Config struct { - // CRS. - CRS []byte - // Network related. NumShards uint32 NumChains uint32 @@ -39,9 +36,6 @@ type Config struct { // Total ordering related. K int PhiRatio float32 - - // Confiuration chain related. - RoundHeight uint64 } // Bytes returns []byte representation of Config. @@ -63,9 +57,6 @@ func (c *Config) Bytes() []byte { binaryPhiRatio := make([]byte, 4) binary.LittleEndian.PutUint32(binaryPhiRatio, math.Float32bits(c.PhiRatio)) - binaryRoundHeight := make([]byte, 8) - binary.LittleEndian.PutUint64(binaryRoundHeight, c.RoundHeight) - enc := make([]byte, 0, 40) enc = append(enc, binaryNumShards...) enc = append(enc, binaryNumChains...) @@ -73,7 +64,5 @@ func (c *Config) Bytes() []byte { enc = append(enc, binaryLambdaDKG...) enc = append(enc, binaryK...) enc = append(enc, binaryPhiRatio...) - enc = append(enc, binaryRoundHeight...) - return enc } |