Skip to content

Check for childkey stake when setting weights #917

@gztensor

Description

@gztensor

The set_weights extrinsic, as well as commit_weights are checking if the weight setting hotkey has enough stake.

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
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions