...ends up replacing config.axon.port with the port parameter (if provided) or defaults to 8091. This makes the config.axon.port setting kind of pointless since it only gets used if no port is passed explicitly.
What’s the recommended way to set a custom port? Should we always pass it as a parameter?
Thanks!
To Reproduce
python neurons/miner.py --axon.port 8092
However, you could see the terminal log like following:
Axon created: Axon([::], 8091, ..., stopped, ['Synapse'])
If I fix the code to hand in port as a param, axon is created on 8092.
Describe the bug
Hey team,
I noticed that this line in the
axon.py
file:https://github.com/opentensor/bittensor/blob/ae0297856be790addff9ea4c6071c57a42e6d95b/bittensor/core/axon.py#L336
...ends up replacing
config.axon.port
with theport
parameter (if provided) or defaults to8091
. This makes theconfig.axon.port
setting kind of pointless since it only gets used if noport
is passed explicitly.What’s the recommended way to set a custom port? Should we always pass it as a parameter?
Thanks!
To Reproduce
Axon created: Axon([::], 8091, ..., stopped, ['Synapse'])
port
as a param, axon is created on 8092.Expected behavior
We can't run multiple neurons on the same device.
Screenshots
No response
Environment
Ubuntu 22.04 Bittensor 8.3.1
Additional context
No response