opentensor / bittensor

Internet-scale Neural Networks
https://www.bittensor.com/
MIT License
851 stars 301 forks source link

Prompted to select network on Finney even when --subtensor.network finney argument is passed #1052

Closed Inquinim closed 1 year ago

Inquinim commented 1 year ago

https://github.com/opentensor/bittensor/blob/017952f7c28f4370bc6d1c9add0c4d728072218e/bittensor/_cli/commands/run.py#L87

When using 'btcli run' it prompts me to select the network even though I pass in the --subtensor.network finney argument.

Changing the referenced line above to: if not config.subtensor.get('network') == bittensor.defaults.subtensor.network and not config.no_prompt:

Resolved the issue.

camfairchild commented 1 year ago

Fixed in #1182