From 243b99706d657e183f94133d8a6dceb993bab96d Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Wed, 11 Sep 2024 10:38:44 -0400 Subject: [PATCH 1/2] add false --- pallets/subtensor/src/coinbase/run_coinbase.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pallets/subtensor/src/coinbase/run_coinbase.rs b/pallets/subtensor/src/coinbase/run_coinbase.rs index 1e74298a5..c8f8ac39a 100644 --- a/pallets/subtensor/src/coinbase/run_coinbase.rs +++ b/pallets/subtensor/src/coinbase/run_coinbase.rs @@ -292,7 +292,8 @@ impl Pallet { // --- 8 Iterate over each nominator and get all viable stake. let mut total_viable_nominator_stake: u64 = total_hotkey_stake; for (nominator, nominator_stake) in Stake::::iter_prefix(hotkey) { - if LastAddStakeIncrease::::get(hotkey, nominator) > last_emission_drain { + if false && LastAddStakeIncrease::::get(hotkey, nominator) > last_emission_drain { + // <============= total_viable_nominator_stake = total_viable_nominator_stake.saturating_sub(nominator_stake); } @@ -303,7 +304,11 @@ impl Pallet { for (nominator, nominator_stake) in Stake::::iter_prefix(hotkey) { // --- 10 Check if the stake was manually increased by the user since the last emission drain for this hotkey. // If it was, skip this nominator as they will not receive their proportion of the emission. - if LastAddStakeIncrease::::get(hotkey, nominator.clone()) > last_emission_drain { + if false + && LastAddStakeIncrease::::get(hotkey, nominator.clone()) + > last_emission_drain + { + // <============= continue; } From b7b0d5c5b23de6d9f539e58b44e142f806c0c704 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Wed, 11 Sep 2024 10:39:04 -0400 Subject: [PATCH 2/2] bump spec --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 5ffb0863a..28a3953e2 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -142,7 +142,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: 196, + spec_version: 199, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,