We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74db144 commit 395105bCopy full SHA for 395105b
pallets/subtensor/src/utils/misc.rs
@@ -167,6 +167,7 @@ impl<T: Config> Pallet<T> {
167
let (stakes_count, last_staked_at) =
168
TotalHotkeyColdkeyStakesThisInterval::<T>::get(coldkey, hotkey);
169
170
+ // Reset staking counter if it's been stake_interval blocks since the first staking action of the series.
171
if stakes_count == 0 || last_staked_at.saturating_add(stake_interval) <= current_block {
172
TotalHotkeyColdkeyStakesThisInterval::<T>::insert(coldkey, hotkey, (1, current_block));
173
return Ok(());
0 commit comments