Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix decision from UpToLimitDisablingStrategy #4262

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

tdimitrov
Copy link
Contributor

CurrentEra in staking pallet is actually the latest planned era. The actual current era is ActiveEra.

…taking pallet is actually the latest planned era. The actual current era is in `ActiveEra`
@tdimitrov tdimitrov added the R0-silent Changes should not be mentioned in any release notes label Apr 23, 2024
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 1/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6029648

return None
}

// We don't disable for offences in previous eras
if Pallet::<T>::current_era().unwrap_or_default() > slash_era {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paritytech/staking-core the naming current_era is super misleading and have bitten us already

@tdimitrov tdimitrov merged commit 87112ac into tsv-disabling-for-era Apr 24, 2024
139 of 140 checks passed
@tdimitrov tdimitrov deleted the tsv-fix-decision branch April 24, 2024 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants