Skip to content

Burn Emissions #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
14 changes: 4 additions & 10 deletions services/subtensor_syncing/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
SetWeightsResponse,
)

OWNER_UID_TO_BURN = 56


class AutoSyncSubtensor:
def __init__(self):
Expand Down Expand Up @@ -76,16 +78,8 @@ async def do_set_weights(self) -> SetWeightsResponse:
response_json = response.json()
weights = response_json["weights"]
uids = response_json["uids"]

from datetime import datetime
import random

if datetime.utcnow() < datetime(2025, 2, 5, 17):
logger.info("Setting nearly flat weights before 17:00 UTC")
weights = [random.random() * 0.1 + 0.7 for _ in range(256)]
logger.info(f"Flat weights: {weights}")
else:
logger.info("Setting normal weights")
weights = [0] * len(weights)
weights[OWNER_UID_TO_BURN] = 1
(
processed_weight_uids,
processed_weights,
Expand Down