Chore: Don't ForEach when Len is what you want
Opened this issue · 0 comments
meling commented
In leaderrotation/reputation.go:59-62
we do this:
numVotes := 0
voters.ForEach(func(hotstuff.ID) {
numVotes++
})
It should do this:
numVotes := voters.Len()