Errors/Chain errors

EmissionWeightsDoNotSumToOne

Check the argument values against the operation schema

View as Markdown

The five slots and the subnet's gamma shares do not sum to exactly u64::MAX (1.0), so raising one share requires lowering another in the same call. btcli subnets emission set-value/increase/decrease renormalize the other slots for you; with a raw call, give shares that total 18446744073709551615 with the gamma shares (sudo_set_subnet_emission_weights keeps omitted slots; sudo_set_subnet_emission_weights_v2 sets omitted slots to zero).

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

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

Remediation

Check the argument values against the operation schema

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