aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/test/governance.go1
-rw-r--r--core/types/config.go10
-rw-r--r--simulation/governance.go1
3 files changed, 3 insertions, 9 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...)
diff --git a/simulation/governance.go b/simulation/governance.go
index dd4ef37..68e9765 100644
--- a/simulation/governance.go
+++ b/simulation/governance.go
@@ -98,7 +98,6 @@ func (g *simGovernance) Configuration(round uint64) *types.Config {
K: g.k,
PhiRatio: g.phiRatio,
NumNotarySet: len(g.nodeSet),
- NumWitnessSet: len(g.nodeSet),
NumDKGSet: len(g.nodeSet),
MinBlockInterval: g.lambdaBA * 3,
MaxBlockInterval: g.lambdaBA * 8,