Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sudo Commands #8

Merged
merged 4 commits into from
Aug 14, 2024
Merged

Sudo Commands #8

merged 4 commits into from
Aug 14, 2024

Conversation

thewhaleking
Copy link
Contributor

@thewhaleking thewhaleking commented Aug 14, 2024

This adds the sudo commands, of which there are only two. This looks initially like a larger PR, but it is not. I moved the logic for the async with subtensor from #7 to only be triggered at a single point (in the CLIManager). This eliminates a lot of unnecessary code.

You can largely ignore the changes in wallets.py, root.py, and stake.py.

@thewhaleking thewhaleking linked an issue Aug 14, 2024 that may be closed by this pull request
7 tasks
@thewhaleking thewhaleking mentioned this pull request Aug 14, 2024
7 tasks
@thewhaleking thewhaleking requested a review from a team August 14, 2024 20:43
@thewhaleking thewhaleking marked this pull request as ready for review August 14, 2024 20:43
else:
norm_value = value
except Exception as e:
# bittensor.logging.warning(f"Error normalizing parameter '{param}': {e}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually leaving these in intentionally because I want to add a logger at the end.

@thewhaleking thewhaleking merged commit 790d95d into main Aug 14, 2024
2 checks passed
@thewhaleking thewhaleking deleted the feat/thewhaleking/sudo-commands branch August 14, 2024 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port BTCLI Commands
2 participants