From fedb7bc383a397517a98dc0d4cf4d2ba177affd4 Mon Sep 17 00:00:00 2001 From: Patrick McClurg Date: Thu, 15 Feb 2024 11:25:09 +0100 Subject: [PATCH] added extra check of threshold --- share/poly.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/poly.go b/share/poly.go index 1f31ac14a..e96631738 100644 --- a/share/poly.go +++ b/share/poly.go @@ -388,7 +388,7 @@ func (p *PubPoly) Equal(q *PubPoly) bool { } b := 1 - if len(p.commits) < p.Threshold() || len(q.commits) < p.Threshold() { + if len(p.commits) < p.Threshold() || len(q.commits) < p.Threshold() || p.Threshold() != q.Threshold() { return false }