Skip to content

fix: move same-account check before valid_solved_count increment (#1255)#1257

Open
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1255-valid-solved-count
Open

fix: move same-account check before valid_solved_count increment (#1255)#1257
alpurkan17 wants to merge 1 commit into
entrius:testfrom
alpurkan17:fix/1255-valid-solved-count

Conversation

@alpurkan17
Copy link
Copy Markdown
Contributor

Summary

Reorder the same-account check (issue.author_github_id == solving_pr.author_github_id) to happen before valid_solved_count is incremented. Previously a miner who filed an issue and solved it with their own PR had that issue counted toward valid_solved_count, bypassing MIN_VALID_SOLVED_ISSUES eligibility gate.

Validation

  • ruff check + ruff format pass
  • 4 lines moved, no logic change other than order

Closes #1255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] valid_solved_count increments on same-account solves, bypassing MIN_VALID_SOLVED_ISSUES eligibility gate

1 participant