Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions gittensor/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
SECONDS_PER_DAY = 86400
SECONDS_PER_HOUR = 3600

# =============================================================================
# Validator
# =============================================================================
VALIDATOR_WAIT = 60 # 60 seconds
VALIDATOR_STEPS_INTERVAL = 120 # 2 hours, every time a scoring round happens

# =============================================================================
# Network
# =============================================================================
Expand Down
8 changes: 3 additions & 5 deletions gittensor/validator/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
OSS_EMISSION_SHARE,
RECYCLE_EMISSION_SHARE,
RECYCLE_UID,
VALIDATOR_STEPS_INTERVAL,
VALIDATOR_WAIT,
)
from gittensor.utils.uids import get_all_uids
from gittensor.validator.issue_competitions.forward import issue_competitions
Expand All @@ -24,11 +26,7 @@
from gittensor.validator.issue_discovery.repo_scan import scan_closed_issues
from gittensor.validator.issue_discovery.scoring import score_discovered_issues
from gittensor.validator.oss_contributions.reward import get_rewards
from gittensor.validator.utils.config import (
GITTENSOR_VALIDATOR_PAT,
VALIDATOR_STEPS_INTERVAL,
VALIDATOR_WAIT,
)
from gittensor.validator.utils.config import GITTENSOR_VALIDATOR_PAT
from gittensor.validator.utils.load_weights import (
RepositoryConfig,
load_master_repo_weights,
Expand Down
10 changes: 0 additions & 10 deletions gittensor/validator/utils/config.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import os

import bittensor as bt

VALIDATOR_WAIT = 60 # 60 seconds
VALIDATOR_STEPS_INTERVAL = 120 # 2 hours, every time a scoring round happens

# required env vars
GITTENSOR_VALIDATOR_PAT = os.getenv('GITTENSOR_VALIDATOR_PAT')
WANDB_API_KEY = os.getenv('WANDB_API_KEY')
Expand All @@ -13,8 +8,3 @@

# optional env vars
STORE_DB_RESULTS = os.getenv('STORE_DB_RESULTS', 'false').lower() == 'true'

# log values
bt.logging.info(f'VALIDATOR_WAIT: {VALIDATOR_WAIT}')
bt.logging.info(f'VALIDATOR_STEPS_INTERVAL: {VALIDATOR_STEPS_INTERVAL}')
bt.logging.info(f'WANDB_PROJECT: {WANDB_PROJECT}')
Loading