aboutsummaryrefslogtreecommitdiffstats
path: root/core/test
diff options
context:
space:
mode:
Diffstat (limited to 'core/test')
-rw-r--r--core/test/governance.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/test/governance.go b/core/test/governance.go
index ee4491f..473c331 100644
--- a/core/test/governance.go
+++ b/core/test/governance.go
@@ -127,6 +127,11 @@ func (g *Governance) PrivateKeys() (keys []crypto.PrivateKey) {
func (g *Governance) AddDKGComplaint(complaint *types.DKGComplaint) {
g.lock.Lock()
defer g.lock.Unlock()
+ for _, comp := range g.DKGComplaint[complaint.Round] {
+ if comp == complaint {
+ return
+ }
+ }
g.DKGComplaint[complaint.Round] = append(g.DKGComplaint[complaint.Round],
complaint)
}