Skip to content

Commit

Permalink
keep out of wallet args
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Aug 12, 2022
1 parent a3310cc commit 7700f55
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bittensor/_wallet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ def add_args(cls, parser: argparse.ArgumentParser, prefix: str = None ):
parser.add_argument('--' + prefix_str + 'wallet.hotkey', required=False, default=bittensor.defaults.wallet.hotkey, help='''The name of wallet's hotkey.''')
parser.add_argument('--' + prefix_str + 'wallet.path', required=False, default=bittensor.defaults.wallet.path, help='''The path to your bittensor wallets''')
parser.add_argument('--' + prefix_str + 'wallet._mock', action='store_true', default=bittensor.defaults.wallet._mock, help='To turn on wallet mocking for testing purposes.')
parser.add_argument('--' + prefix_str + 'wallet.hotkeys', '--' + prefix_str + 'wallet.exclude_hotkeys', required=False, action='store', default=bittensor.defaults.wallet.hotkeys, type=str, nargs='*', help='''Specify the hotkeys by name. (e.g. hk1 hk2 hk3)''')
parser.add_argument('--' + prefix_str + 'wallet.all_hotkeys', required=False, action='store_true', default=bittensor.defaults.wallet.all_hotkeys, help='''To specify all hotkeys. Specifying hotkeys will exclude them from this all.''')
parser.add_argument('--' + prefix_str + 'wallet.reregister', required=False, action='store', default=bittensor.defaults.wallet.reregister, type=bool, help='''Whether to reregister the wallet if it is not already registered.''')
except argparse.ArgumentError as e:
import pdb
Expand Down Expand Up @@ -142,6 +140,4 @@ def check_config(cls, config: 'bittensor.Config' ):
assert isinstance(config.wallet.get('name', bittensor.defaults.wallet.name), str)
assert isinstance(config.wallet.get('hotkey', bittensor.defaults.wallet.hotkey), str ) or config.wallet.get('hotkey', bittensor.defaults.wallet.hotkey) == None
assert isinstance(config.wallet.path, str)
assert isinstance(config.wallet.hotkeys, list)
assert isinstance(config.wallet.all_hotkeys, bool)
assert isinstance(config.wallet.reregister, bool)

0 comments on commit 7700f55

Please sign in to comment.