Skip to content

pallet-collator-selection: correctly register weight in new_session#5430

Merged
bkchr merged 6 commits intoparitytech:masterfrom
moliholy:fix/collator-selection
Aug 24, 2024
Merged

pallet-collator-selection: correctly register weight in new_session#5430
bkchr merged 6 commits intoparitytech:masterfrom
moliholy:fix/collator-selection

Conversation

@moliholy
Copy link
Copy Markdown
Contributor

@moliholy moliholy commented Aug 21, 2024

The pallet-collator-selection is not correctly using the weight for the new_session function.

The first parameter is the removed candidates, and the second one the original number of candidates before the removal, but both values are swapped.

@moliholy moliholy changed the title pallet-collator-staking: ese correctly the WeightInfo call for new_session pallet-collator-staking: use correctly the WeightInfo call for new_session Aug 21, 2024
@moliholy moliholy changed the title pallet-collator-staking: use correctly the WeightInfo call for new_session pallet-collator-staking: use correctly the WeightInfo call for new_session Aug 21, 2024
@moliholy moliholy changed the title pallet-collator-staking: use correctly the WeightInfo call for new_session pallet-collator-selection: use correctly the WeightInfo call for new_session Aug 21, 2024
Copy link
Copy Markdown
Contributor

@georgepisaltu georgepisaltu left a comment

Choose a reason for hiding this comment

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

Good catch! A couple of comments but otherwise looks good.

@georgepisaltu georgepisaltu added the T2-pallets This PR/Issue is related to a particular pallet. label Aug 21, 2024
Copy link
Copy Markdown
Contributor

@georgepisaltu georgepisaltu left a comment

Choose a reason for hiding this comment

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

Please update the PR title as well.

@moliholy moliholy changed the title pallet-collator-selection: use correctly the WeightInfo call for new_session pallet-collator-selection: correctly register weight in new_session Aug 21, 2024
@moliholy
Copy link
Copy Markdown
Contributor Author

Please update the PR title as well.

Done!

@bkchr bkchr added this pull request to the merge queue Aug 24, 2024
Merged via the queue into paritytech:master with commit 475432f Aug 24, 2024
ordian added a commit that referenced this pull request Aug 27, 2024
* master: (36 commits)
  Bump the ci_dependencies group across 1 directory with 2 updates (#5401)
  Remove deprecated calls in cumulus-parachain-system (#5439)
  Make the PR template a default for new PRs (#5462)
  Only log the propagating transactions when they are not empty (#5424)
  [CI] Fix SemVer check base commit (#5361)
  Sync status refactoring (#5450)
  Add build options to the srtool build step (#4956)
  `MaybeConsideration` extension trait for `Consideration` (#5384)
  Skip slot before creating inherent data providers during major sync (#5344)
  Add symlinks for code of conduct and contribution guidelines (#5447)
  pallet-collator-selection: correctly register weight in `new_session` (#5430)
  Derive `Clone` on `EncodableOpaqueLeaf` (#5442)
  Moving `Find FAIL-CI` check to GHA (#5377)
  Remove panic, as proof is invalid. (#5427)
  Reactive syncing metrics (#5410)
  [bridges] Prune messages from confirmation tx body, not from the on_idle (#5006)
  Change the chain to Rococo in the parachain template Zombienet config (#5279)
  Improve the appearance of crates on `crates.io` (#5243)
  Add initial version of `pallet_revive` (#5293)
  Update OpenZeppelin template documentation (#5398)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T2-pallets This PR/Issue is related to a particular pallet.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants