Commit 88fb04fe authored by Mikkel Wienberg Madsen's avatar Mikkel Wienberg Madsen 👀
Browse files

Fix election.go

parent 8e474316
Pipeline #21386 failed with stages
in 14 seconds
......@@ -270,9 +270,9 @@ func (election *Election) Tally() *Tally {
defer election.Unlock()
election.Judge = NewJudge(election.Participants.RequiredServers, election.ballotBox)
// TODO: Send white list
// broadcast(election.Judge.Answers)
return election.ballotBox.Tally()
// TODO: Set up handler for receiving whitelists
// broadcast(election.Judge.Answers or election.ballotBox.Filter())
return election.ballotBox.Tally(election.Judge.GoodIds())
}
// HandleTally handles the tallies received from servers
......
Supports Markdown
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