Skip to content

Commit

Permalink
Fix/tally spoiled (#466)
Browse files Browse the repository at this point in the history
* Removed check for spoiled ballot to be in tally
Added scrolling on the challeneged ballot display
Updated version number to allow for WASM

* Converting spoiled to challenged on import
  • Loading branch information
SteveMaier-IRT authored Sep 14, 2023
1 parent c14e04b commit 5f2ac24
Show file tree
Hide file tree
Showing 5 changed files with 274 additions and 282 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ public void AddBallot(CiphertextBallot ballot)
// add a spoiled ballot which will not be decrypted
public void AddSpoiledBallot(CiphertextBallot ballot)
{
if (_tally.HasBallot(ballot.ObjectId))
{
throw new ArgumentException($"Tally {TallyId} already contains ballot {ballot.ObjectId}");
}

if (!ballot.IsSpoiled)
{
throw new ArgumentException($"Tally {TallyId} Cannot add unspoiled ballot {ballot.ObjectId} {ballot.State.ToString()}");
Expand Down
Loading

0 comments on commit 5f2ac24

Please sign in to comment.