Skip to content

Commit

Permalink
fix: remove validators serving axons
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed Apr 23, 2024
1 parent 236e059 commit a6d1978
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions neurons/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from commons.logging.wandb_logging import wandb_log
from commons.reward_model.models import ModelUtils
from commons.scoring import Scoring
from commons.utils import get_epoch_time, get_new_uuid, init_wandb, serve_axon
from commons.utils import get_epoch_time, get_new_uuid, init_wandb
from template.base.neuron import BaseNeuron
from template.protocol import (
SCORING_METHOD_PRIORITY,
Expand Down Expand Up @@ -497,20 +497,6 @@ async def run(self):
f"Running validator {self.axon} on network: {self.config.subtensor.chain_endpoint} with netuid: {self.config.netuid}"
)

# Serve passes the axon information to the network + netuid we are hosting on.
# This will auto-update if the axon port of external ip have changed.
serve_success = serve_axon(self.subtensor, self.axon, self.config)
if serve_success:
bt.logging.success("Successfully served axon for validator!")
else:
bt.logging.error("Failed to serve axon for validator, exiting.")
exit()

self.axon.start()
bt.logging.info(
f"Serving validator axon {self.axon} on network: {self.config.subtensor.chain_endpoint} with netuid: {self.config.netuid}"
)

bt.logging.info(f"Validator starting at block: {self.block}")

# This loop maintains the validator's operations until intentionally stopped.
Expand Down

0 comments on commit a6d1978

Please sign in to comment.