Skip to content

fix: move valid_solved_count increment past same-account guard#387

Open
Grizouforever wants to merge 1 commit intoentrius:testfrom
Grizouforever:fix/self-solved-issues-valid-count-gate
Open

fix: move valid_solved_count increment past same-account guard#387
Grizouforever wants to merge 1 commit intoentrius:testfrom
Grizouforever:fix/self-solved-issues-valid-count-gate

Conversation

@Grizouforever
Copy link
Copy Markdown

Summary

Move the data.valid_solved_count += 1 increment to after the same-account guard in _collect_issues_from_prs. Previously, self-solved issues (where discoverer == solver) were counted toward valid_solved_count before the guard could skip them, allowing a miner to falsely satisfy the eligibility gate for the issue discovery reward pool.

@anderdc @LandynDev

Related Issues

Fixes #386

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

All 272 existing tests pass (pytest tests/ -x -q).

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

Self-solved issues were being counted toward valid_solved_count before
the discoverer == solver guard, allowing a miner to unlock the issue
discovery reward pool without legitimately discovering bugs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Self-solved issues falsely satisfy valid_solved_count eligibility gate

1 participant