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

[autovalidator] Automatically provision child hotkeys #7

Open
ppolewicz opened this issue Aug 9, 2024 · 0 comments
Open

[autovalidator] Automatically provision child hotkeys #7

ppolewicz opened this issue Aug 9, 2024 · 0 comments
Assignees

Comments

@ppolewicz
Copy link
Contributor

ppolewicz commented Aug 9, 2024

Automatically, when the user uses a "rotate child hotkey" action (similar to delete) on a ValidatorInstance object:

  • destroy the child hotkey for the subnet in question, if any child hotkeys exist (checking on chain, not just in the database)
  • create a child hotkey for the subnet in question using the "mother" coldkey (path will be provided in django settings)
  • run a install_hotkey.sh script (currently we don't have it yet as another team is running it) from a location which has the subnet codename in it, passing ssh address and local path to the child hotkey
  • add the child hotkey to a new Hotkey django model which will be referenced by ValidatorInstance with a ForeignKey, indicating it's from the mother (as opposed to validator hotkey)
  • add a celery loop to make sure all hotkeys which should be registered on subnets, are registered on the subnets and if not, run a celery task to register them

TBD by Fel

@ppolewicz ppolewicz changed the title Automatically provision child hotkeys [autovalidator] Automatically provision child hotkeys Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In review
Development

No branches or pull requests

2 participants