Errors/Chain errors
InvalidChild
Check the argument values against the operation schema
The children or parents list includes the pivot hotkey itself (a self-loop), including during a hotkey swap when the new hotkey is already a child or parent of the old one. Check the children argument and ChildKeys/ParentKeys for the hotkeys involved.
Declared by the SubtensorModule pallet; it classifies to the semantic code invalid_argument.
Remediation
Check the argument values against the operation schema
The same explanation is available in the terminal: btcli explain InvalidChild.