Skip to content

Commit

Permalink
added extra check of threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
CluEleSsUK committed Feb 15, 2024
1 parent 5924c77 commit fedb7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/poly.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit fedb7bc

Please sign in to comment.