Skip to content

Commit

Permalink
use neurons lite for overview (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild authored Mar 20, 2023
1 parent fbbeed6 commit 139d3ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions bittensor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def turn_console_off():
from bittensor._dendrite.dendrite_impl import Dendrite as Dendrite
from bittensor._metagraph.metagraph_impl import Metagraph as Metagraph
from bittensor._subtensor.chain_data import NeuronInfo as NeuronInfo
from bittensor._subtensor.chain_data import NeuronInfoLite as NeuronInfoLite
from bittensor._subtensor.chain_data import PrometheusInfo as PrometheusInfo
from bittensor._subtensor.subtensor_impl import Subtensor as Subtensor
from bittensor._serializer.serializer_impl import Serializer as Serializer
Expand Down
2 changes: 1 addition & 1 deletion bittensor/_cli/commands/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run( cli ):

with console.status(":satellite: Syncing with chain: [white]{}[/white] ...".format(cli.config.subtensor.get('network', bittensor.defaults.subtensor.network))):
for netuid in tqdm(netuids_copy, desc="Checking each subnet"):
all_neurons = subtensor.neurons( netuid = netuid )
all_neurons: List[bittensor.NeuronInfoLite] = subtensor.neurons_lite( netuid = netuid )
# Map the hotkeys to uids
hotkey_to_neurons = {n.hotkey: n.uid for n in all_neurons}
for hot_wallet in all_hotkeys:
Expand Down

0 comments on commit 139d3ec

Please sign in to comment.