Commit 36b6388d authored by masala's avatar masala

fix threshold check

parent 28f5639e
......@@ -628,7 +628,7 @@ func (s *state) tallyVotes(epoch uint64) ([]*descriptor, *config.Parameters, err
if !ok {
return nil, nil, fmt.Errorf("no votes for epoch %v", epoch)
}
if len(s.votes[epoch]) <= s.threshold {
if len(s.votes[epoch]) < s.threshold {
return nil, nil, fmt.Errorf("not enough votes for epoch %v", epoch)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment