Skip to content

Commit

Permalink
config propogation error
Browse files Browse the repository at this point in the history
  • Loading branch information
hscott-yuma committed Dec 19, 2024
1 parent 8275b52 commit 16a07be
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions start_validator.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import argparse
import subprocess
import time

import bittensor as bt

import precog
from precog.utils.config import config, to_string
from precog.utils.config import add_args, add_validator_args, to_string
from precog.utils.general import get_version

webhook_url = ""
Expand Down Expand Up @@ -34,7 +37,10 @@ def update_and_restart(config):


if __name__ == "__main__":
config = config(neuron_type="validator")
parser = argparse.ArgumentParser()
add_args(parser)
add_validator_args(parser)
config = bt.config(parser)
try:
update_and_restart(config)
except Exception as e:
Expand Down

0 comments on commit 16a07be

Please sign in to comment.