Skip to content

Commit

Permalink
replace unknown wallet params (chain mismatch) with key values (#1559)
Browse files Browse the repository at this point in the history
* replace unknown wallet params (chain mismatch) with key values

* run black

* rm debug prints
  • Loading branch information
ifrit98 authored Oct 27, 2023
1 parent 292b6a9 commit 75ba873
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bittensor/commands/overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def run(cli: "bittensor.cli"):
] = hotkey_wallet

all_hotkey_addresses = list(hotkey_coldkey_to_hotkey_wallet.keys())

with console.status(
":satellite: Syncing with chain: [white]{}[/white] ...".format(
cli.config.subtensor.get(
Expand Down Expand Up @@ -285,7 +284,11 @@ def run(cli: "bittensor.cli"):
nn.coldkey, None
)
if not hotwallet:
continue
# Indicates a mismatch between what the chain says the coldkey
# is for this hotkey and the local wallet coldkey-hotkey pair
hotwallet = argparse.Namespace()
hotwallet.name = nn.coldkey[:7]
hotwallet.hotkey_str = nn.hotkey[:7]
nn: bittensor.NeuronInfoLite
uid = nn.uid
active = nn.active
Expand Down

0 comments on commit 75ba873

Please sign in to comment.