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

Implement pending mechanics for setting childkeys #1041

Open
gztensor opened this issue Nov 29, 2024 · 0 comments
Open

Implement pending mechanics for setting childkeys #1041

gztensor opened this issue Nov 29, 2024 · 0 comments
Assignees

Comments

@gztensor
Copy link
Contributor

gztensor commented Nov 29, 2024

Use the following design:

  1. Introduce PendingChildKeys double map that will store ("vector of childkeys and proportions", cool-down block) values with (hotkey, netuid) keys
  2. The set_children adds/overrides value in PendingChildKeys map with a cool-down block (which is 7200 blocks from the current one)
  3. run_coinbase executes setting children in ChildKeys and ParentKeys (what currently do_set_children does) if cool down has expired when it drains the hotkeys.

Address spamming concerns:

  1. Additional check in set_children that parent key has minimum stake
  2. In remove_stake we check that stake went below minimum and remove records from PendingChildKeys map if it did
@gztensor gztensor self-assigned this Nov 29, 2024
@gztensor gztensor changed the title Use stake deltas in childkey stake Implement pending mechanics for setting childkeys Dec 2, 2024
@gztensor gztensor mentioned this issue Dec 3, 2024
13 tasks
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

No branches or pull requests

1 participant