opentensor / bittensor-subnet-template

Template Design for a Bittensor subnetwork
MIT License
76 stars 129 forks source link

fix base miner.py axon init params #57

Closed alex-drocks closed 9 months ago

alex-drocks commented 9 months ago

Problem: Default example omits the axon ip and external_ip so servers that need to use specific --axon.ip and axon.external_ip configs will not work

Solution: Pass the whole config object to the init function to ensure everything from the command line arguments is passed. (it is also currently the solution implemented in the base validator.py file)

More info on another PR: https://github.com/RogueTensor/bitagent_subnet/pull/3

Bittensor docs ref for axon: https://github.com/opentensor/bittensor/blob/935217242ef8b48ecf0d63f9bb0b920905c8cda8/bittensor/axon.py#L215