Errors/Chain errors

EmissionWeightIndexOutOfRange

Check the argument values against the operation schema

View as Markdown

sudo_set_subnet_emission_weights named a slot index outside the five-slot emission weight vector. Valid indices are 0 = burn, 1 = recycle, 2 = owner, 3 = validator, 4 = miner; gamma shares are set with sudo_set_subnet_emission_weights_v2.

Declared by the SubtensorModule pallet; it classifies to the semantic code invalid_argument.

Declared at pallets/subtensor/src/macros/errors.rs#L427.

Remediation

Check the argument values against the operation schema

The same explanation is available in the terminal: btcli explain EmissionWeightIndexOutOfRange.