Skip to content

Commit c74baec

Browse files
committed
re-apply hotfix patch
1 parent 28df894 commit c74baec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<T: Config> Pallet<T> {
292292
// --- 8 Iterate over each nominator and get all viable stake.
293293
let mut total_viable_nominator_stake: u64 = total_hotkey_stake;
294294
for (nominator, nominator_stake) in Stake::<T>::iter_prefix(hotkey) {
295-
if LastAddStakeIncrease::<T>::get(hotkey, nominator) > last_emission_drain {
295+
if false && LastAddStakeIncrease::<T>::get(hotkey, nominator) > last_emission_drain {
296296
total_viable_nominator_stake =
297297
total_viable_nominator_stake.saturating_sub(nominator_stake);
298298
}
@@ -303,7 +303,10 @@ impl<T: Config> Pallet<T> {
303303
for (nominator, nominator_stake) in Stake::<T>::iter_prefix(hotkey) {
304304
// --- 10 Check if the stake was manually increased by the user since the last emission drain for this hotkey.
305305
// If it was, skip this nominator as they will not receive their proportion of the emission.
306-
if LastAddStakeIncrease::<T>::get(hotkey, nominator.clone()) > last_emission_drain {
306+
if false
307+
&& LastAddStakeIncrease::<T>::get(hotkey, nominator.clone())
308+
> last_emission_drain
309+
{
307310
continue;
308311
}
309312

0 commit comments

Comments
 (0)