Skip to content
Merged
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
7 changes: 7 additions & 0 deletions synth/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ def config(cls):
"""
Returns the configuration object specific to this miner or validator after adding relevant arguments.
"""
# bittensor 10.4.x disables CLI argument parsing unless BT_NO_PARSE_CLI_ARGS
# is explicitly falsy (it defaults to "true"). Our neurons are configured
# entirely through CLI flags, so without this bt.Config(parser) ignores
# every --flag and returns only DEFAULTS (config.neuron is None, subtensor
# on finney, etc.). Scoped here (not module level) so it only affects
# neuron config building, never bittensor's logging machine under pytest.
os.environ.setdefault("BT_NO_PARSE_CLI_ARGS", "false")
parser = argparse.ArgumentParser()
bt.Wallet.add_args(parser)
bt.Subtensor.add_args(parser)
Expand Down
Loading