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

chore: Removed upgrade condition for pending swaps #5497

Merged
merged 3 commits into from
Dec 18, 2024

Conversation

Janislav
Copy link
Contributor

@Janislav Janislav commented Dec 12, 2024

Pull Request

Closes: PRO-1680

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have written sufficient tests.
  • I have written and tested required migrations.
  • I have updated documentation where appropriate.

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.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72%. Comparing base (6890461) to head (9934048).
Report is 11 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

@Janislav Janislav marked this pull request as ready for review December 12, 2024 15:58
@Janislav Janislav requested a review from dandanlen as a code owner December 12, 2024 15:58
@@ -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>),
Copy link
Contributor

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

Copy link
Collaborator

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 ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done ✅

@Janislav Janislav added this pull request to the merge queue Dec 18, 2024
Merged via the queue into main with commit d2868d2 Dec 18, 2024
48 checks passed
@Janislav Janislav deleted the remove/pro-1680/check-swap-queue-on-ru branch December 18, 2024 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants