Skip to content

Commit

Permalink
milestone3 end-to-end debugging chaser 1
Browse files Browse the repository at this point in the history
  • Loading branch information
windoverwater committed Apr 18, 2024
1 parent 8ea2154 commit 3026219
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/vtp/ops/verify_ballot_receipt_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,14 @@ def vet_a_row():
if found is False:
unmerged_uids[uid] = u_count
if unmerged_uids:
self.imprimir("The following contests are not merged to main yet:", 0)
for uid, offset in unmerged_uids.items():
self.imprimir(f"{headers[offset]} ({requested_digests[offset]})", 0)
truly_unmerged_uids = {}
for uid in unmerged_uids:
if uid not in error_digests:
truly_unmerged_uids[uid] = unmerged_uids[uid]
if truly_unmerged_uids:
self.imprimir("The following contests are not merged to main yet:", 0)
for uid, offset in truly_unmerged_uids.items():
self.imprimir(f"{headers[offset]} ({requested_digests[offset]})", 0)

# If a row is specified, will print the context index in the
# actual contest tally - which basically tells the voter 'your
Expand All @@ -270,7 +275,7 @@ def vet_a_row():
if digest in error_digests:
self.imprimir(
"cannot print CVR for {digest} (row {row_index}) - it is invalid",
1,
5,
)
continue
valid_digests.append(digest)
Expand Down

0 comments on commit 3026219

Please sign in to comment.