-
Notifications
You must be signed in to change notification settings - Fork 251
Closed
Description
The set_weights extrinsic, as well as commit_weights are checking if the weight setting hotkey has enough stake.
commit_weightsdoes it here:subtensor/pallets/subtensor/src/lib.rs
Line 1446 in dfbed6b
if Self::check_weights_min_stake(who) { set_weightsdoes it here:Self::check_weights_min_stake(&hotkey, netuid),
but both check using check_weights_min_stake, which uses TotalColdkeyStake. We need to modify check_weights_min_stake so that it considers parent/child stake.
Acceptance criteria:
- Update
check_weights_min_stake - Unit test or e2e test for each path that sets weights
Metadata
Metadata
Assignees
Labels
No labels