Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions gittensor/validator/issue_discovery/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,6 @@ async def _score_miner_issues(
)
continue

# Valid-solved gate: solving PR must meet the repo's token threshold.
if cached.token_score >= cfg.min_token_score_for_valid_issue:
acc.valid_solved += 1

# Same-account: discoverer == solver gets credibility only, no score
if issue.author_github_id == solving_pr.author_github_id:
bt.logging.debug(
Expand All @@ -477,6 +473,12 @@ async def _score_miner_issues(
)
continue

# Valid-solved gate: solving PR must meet the repo's token threshold.
# Placed after exclusion guards so same-account and non-canonical issues
# do not inflate the counter and bypass the eligibility check.
if cached.token_score >= cfg.min_token_score_for_valid_issue:
acc.valid_solved += 1

# Quality gate: below-threshold solving PRs add credibility only, no
# discovery score.
if cached.token_score < cfg.min_token_score_for_valid_issue:
Expand Down