diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/test/governance.go | 1 | ||||
-rw-r--r-- | core/types/config.go | 10 |
2 files changed, 3 insertions, 8 deletions
diff --git a/core/test/governance.go b/core/test/governance.go index 95cd6f7..31fe5f4 100644 --- a/core/test/governance.go +++ b/core/test/governance.go @@ -96,7 +96,6 @@ func (g *Governance) Configuration(_ uint64) *types.Config { K: 0, PhiRatio: 0.667, NumNotarySet: len(g.privateKeys), - NumWitnessSet: len(g.privateKeys), NumDKGSet: len(g.privateKeys), RoundInterval: g.RoundInterval, MinBlockInterval: g.MinBlockInterval, 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...) |