diff --git a/openvalidators/neuron.py b/openvalidators/neuron.py index e6c7962..d905d4f 100644 --- a/openvalidators/neuron.py +++ b/openvalidators/neuron.py @@ -88,11 +88,9 @@ def __init__(self): self.wallet = bt.wallet(config=self.config) self.wallet.create_if_non_existent() if not self.config.wallet._mock: - bt.utils.reregister( - wallet = self.wallet, - subtensor=self.subtensor, - netuid=self.config.netuid - ) + if not self.subtensor.is_hotkey_registered_on_subnet(hotkey_ss58=self.wallet.hotkey.ss58_address, netuid=self.config.netuid): + raise Exception(f'Wallet not currently registered on netuid {self.config.netuid}, please first register wallet before running') + bt.logging.debug(str(self.wallet)) # Init metagraph. diff --git a/requirements.txt b/requirements.txt index 23c892f..8f47125 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -bittensor>=5.3.2,<6.0.0 +bittensor>=5.2.0,<6.0.0 transformers<=4.28.0 wandb==0.15.3 -datasets==2.12.0 +datasets>=2.12.0, <= 2.14.0 plotly==5.14.1 networkx==3.1 scipy==1.10.1 @@ -10,4 +10,3 @@ click==8.1.3 torchmetrics sentencepiece numpy==1.21.6 -bittensor-wallet>=0.0.4,<1.0.0