Skip to content

Commit 8f17fce

Browse files
committed
Updated collateral effective date
1 parent 77eaa6d commit 8f17fce

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

gittensor/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
# Collateral System
9898
# =============================================================================
9999
# Date when collateral system becomes effective (PRs created after this date are subject to collateral)
100-
COLLATERAL_EFFECTIVE_DATE = datetime(2025, 12, 20, 0, 0, 0, tzinfo=timezone.utc)
100+
COLLATERAL_EFFECTIVE_DATE = datetime(2025, 12, 19, 17, 0, 0, tzinfo=timezone.utc)
101101
# Percentage of potential score used as collateral for open PRs
102102
POTENTIAL_SCORE_COLLATERAL_PERCENT = 0.20
103103
# Reinflation multiplier for merged PRs that were subject to collateral while open

gittensor/validator/evaluation/scoring.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import bittensor as bt
99

10-
from gittensor.classes import Issue, MinerEvaluation, PRState, PullRequest
10+
from gittensor.classes import Issue, MinerEvaluation, PullRequest
1111
from gittensor.constants import (
1212
SECONDS_PER_DAY,
1313
SECONDS_PER_HOUR,
@@ -27,8 +27,6 @@
2727
MERGE_SUCCESS_RATIO_ATTEMPTS_THRESHOLD,
2828
MERGE_SUCCESS_RATIO_APPLICATION_DATE,
2929
POTENTIAL_SCORE_COLLATERAL_PERCENT,
30-
COLLATERAL_EFFECTIVE_DATE, # Used in apply_cross_miner_multipliers_and_finalize for reinflation
31-
COLLATERAL_REINFLATION_MULTIPLIER,
3230
)
3331
from gittensor.utils.github_api_tools import get_pull_request_file_changes, normalize_repo_name
3432

@@ -127,10 +125,7 @@ def calculate_time_decay_multiplier(pr: PullRequest) -> float:
127125

128126

129127
def apply_cross_miner_multipliers_and_finalize(miner_evaluations: Dict[int, MinerEvaluation]) -> None:
130-
"""Apply uniqueness multipliers and finalize scores for merged PRs.
131-
132-
Merged PRs created after COLLATERAL_EFFECTIVE_DATE receive reinflation boost.
133-
"""
128+
"""Apply uniqueness multipliers and finalize scores for merged PRs."""
134129
bt.logging.info("**Finalizing merged PR scores**")
135130

136131
repo_counts = count_repository_contributors(miner_evaluations)
@@ -160,12 +155,6 @@ def apply_cross_miner_multipliers_and_finalize(miner_evaluations: Dict[int, Mine
160155
# Calculate final earned score now that all multipliers are set
161156
pr.calculate_final_earned_score()
162157

163-
# Reinflation boost for PRs created after collateral effective date
164-
if pr.created_at > COLLATERAL_EFFECTIVE_DATE:
165-
original = pr.earned_score
166-
pr.earned_score *= COLLATERAL_REINFLATION_MULTIPLIER
167-
bt.logging.info(f" PR #{pr.number} reinflation: {original:.2f} -> {pr.earned_score:.2f}")
168-
169158
evaluation.base_total_score += pr.base_score
170159
evaluation.total_score += pr.earned_score
171160
evaluation.total_lines_changed += pr.total_lines_scored

0 commit comments

Comments
 (0)