diff --git a/pallets/subtensor/src/epoch/run_epoch.rs b/pallets/subtensor/src/epoch/run_epoch.rs index cf7d4dc050..233284a2c6 100644 --- a/pallets/subtensor/src/epoch/run_epoch.rs +++ b/pallets/subtensor/src/epoch/run_epoch.rs @@ -135,6 +135,7 @@ impl Pallet { let pruning_score = extract_from_sorted_terms!(terms_sorted, pruning_score); let validator_trust = extract_from_sorted_terms!(terms_sorted, validator_trust); let new_validator_permit = extract_from_sorted_terms!(terms_sorted, new_validator_permit); + let stake_weight = extract_from_sorted_terms!(terms_sorted, stake_weight); Active::::insert(netuid, active.clone()); Emission::::insert(netuid, emission); @@ -145,6 +146,7 @@ impl Pallet { PruningScores::::insert(netuid, pruning_score); ValidatorTrust::::insert(netuid, validator_trust); ValidatorPermit::::insert(netuid, new_validator_permit); + StakeWeight::::insert(netuid, stake_weight); } /// Calculates reward consensus and returns the emissions for uids/hotkeys in a given `netuid`. diff --git a/pallets/subtensor/src/subnets/uids.rs b/pallets/subtensor/src/subnets/uids.rs index b68fabfbd5..45176b60a4 100644 --- a/pallets/subtensor/src/subnets/uids.rs +++ b/pallets/subtensor/src/subnets/uids.rs @@ -46,6 +46,7 @@ impl Pallet { } } Dividends::::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0)); + StakeWeight::::mutate(netuid, |v| Self::set_element_at(v, neuron_index, 0)); } /// Replace the neuron under this uid. diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index df11059c2a..36cb618688 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -220,7 +220,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 320, + spec_version: 321, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,