You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce PendingChildKeys double map that will store ("vector of childkeys and proportions", cool-down block) values with (hotkey, netuid) keys
The set_children adds/overrides value in PendingChildKeys map with a cool-down block (which is 7200 blocks from the current one)
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:
Additional check in set_children that parent key has minimum stake
In remove_stake we check that stake went below minimum and remove records from PendingChildKeys map if it did
The text was updated successfully, but these errors were encountered:
Use the following design:
PendingChildKeys
double map that will store ("vector of childkeys and proportions", cool-down block) values with (hotkey, netuid) keysset_children
adds/overrides value inPendingChildKeys
map with a cool-down block (which is 7200 blocks from the current one)run_coinbase
executes setting children inChildKeys
andParentKeys
(what currentlydo_set_children
does) if cool down has expired when it drains the hotkeys.Address spamming concerns:
set_children
that parent key has minimum stakeremove_stake
we check that stake went below minimum and remove records fromPendingChildKeys
map if it didThe text was updated successfully, but these errors were encountered: