-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore: Removed upgrade condition for pending swaps #5497
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5497 +/- ##
======================================
- Coverage 72% 72% -0%
======================================
Files 495 495
Lines 88137 88253 +116
Branches 88137 88253 +116
======================================
+ Hits 63152 63172 +20
- Misses 22420 22514 +94
- Partials 2565 2567 +2 ☔ View full report in Codecov by Sentry. |
@@ -730,7 +730,7 @@ impl pallet_cf_governance::Config for Runtime { | |||
type WeightInfo = pallet_cf_governance::weights::PalletWeight<Runtime>; | |||
type UpgradeCondition = ( | |||
pallet_cf_validator::NotDuringRotation<Runtime>, | |||
(pallet_cf_swapping::NoPendingSwaps<Runtime>, pallet_cf_environment::NoUsedNonce<Runtime>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can delete the NoPendingSwaps struct too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove NoUsedNonce too? @marcellorigotti ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ✅
Pull Request
Closes: PRO-1680
Checklist
Please conduct a thorough self-review before opening the PR.
Summary
Removes the obsolete check for pending swaps during a runtime upgrade.
Non-Breaking changes
If this PR includes non-breaking changes, select the
non-breaking
label. On merge, CI will automatically cherry-pick the commit to a PR against the release branch.