From 64efb7a31383c912b3980b02c7e6dea34247aaf7 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 3 Oct 2018 23:23:59 +0800 Subject: core: remove NumWitnessSet in governance config (#167) NumWitnessSet is no longer required as we don't have witness set in the design anymore. --- core/types/config.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'core/types') diff --git a/core/types/config.go b/core/types/config.go index 384041d..2b678b1 100644 --- a/core/types/config.go +++ b/core/types/config.go @@ -36,10 +36,9 @@ type Config struct { K int PhiRatio float32 - // NodeSet related. - NumNotarySet int - NumWitnessSet int - NumDKGSet int + // Set related. + NumNotarySet int + NumDKGSet int // Time related. RoundInterval time.Duration @@ -66,8 +65,6 @@ func (c *Config) Bytes() []byte { binaryNumNotarySet := make([]byte, 4) binary.LittleEndian.PutUint32(binaryNumNotarySet, uint32(c.NumNotarySet)) - binaryNumWitnessSet := make([]byte, 4) - binary.LittleEndian.PutUint32(binaryNumWitnessSet, uint32(c.NumWitnessSet)) binaryNumDKGSet := make([]byte, 4) binary.LittleEndian.PutUint32(binaryNumDKGSet, uint32(c.NumDKGSet)) @@ -88,7 +85,6 @@ func (c *Config) Bytes() []byte { enc = append(enc, binaryK...) enc = append(enc, binaryPhiRatio...) enc = append(enc, binaryNumNotarySet...) - enc = append(enc, binaryNumWitnessSet...) enc = append(enc, binaryNumDKGSet...) enc = append(enc, binaryRoundInterval...) enc = append(enc, binaryMinBlockInterval...) -- cgit v1.2.3