Abstracts elections-phragmen pallet to use NposSolver
This PR refactors the current elections-phragmen pallet to use an NposSolver instead of hardcoding one flavor of phragmen.
To-do:
- [x] rename
elections-phragmentoelections-generic - [x] change name of the pallet's dir from
elections-phragmentoelections - [x] comments on changing the name of the pallet (but not the lockid)
- [ ] try with follow-chain on a block that performs a council election
polkadot companion: https://github.com/paritytech/polkadot/pull/6278
Closes https://github.com/paritytech/substrate/issues/8250 Follow up of https://github.com/paritytech/substrate/pull/12563
I think we should rename the pallet as well fwiw.
I think we should rename the pallet as well fwiw.
Yes, was leaving that to the end. renaming now
bot rebase
/cmd queue -c bench-bot $ pallet dev pallet_elections
bot rebase
/cmd queue -c bench-bot $ pallet dev pallet_elections
needs rebase + ~~would be good to re-weight the election pallet with the bot.~~
/cmd queue -c bench-bot $ pallet dev pallet_elections
/cmd queue -c bench-bot $ pallet dev pallet_elections
bot rebase
/cmd queue -c bench-bot $ pallet dev pallet_elections
bot rebase
/cmd queue -c bench-bot $ pallet dev pallet_election_provider_support
bot rebase
bot bench $ pallet dev pallet_election_provider_support_benchmarking
bot bench $ pallet dev pallet_election_provider_support
bot clean
bot bench $ pallet dev pallet_election_provider_support_benchmarking
@gpestana https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2414803 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" pallet dev pallet_election_provider_support_benchmarking. Check out https://gitlab.parity.io/parity/mirrors/substrate/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.
Comment bot cancel 42-94637b6e-48b1-45b4-8ea6-ac3345937e08 to cancel this command or bot cancel to cancel all commands in this pull request.
@gpestana Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" pallet dev pallet_election_provider_support_benchmarking has finished. Result: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2414803 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2414803/artifacts/download.
Would be good to see a bit more context about upgrade choices in the PR description:
- One should not rename the pallet in
construct_runtime, or else usemove_pallet(not reocmmended) - One should consider switching to a simpler
Solvertype like approval-voting.
Would be good to see a bit more context about upgrade choices in the PR description:
- One should not rename the pallet in
construct_runtime, or else usemove_pallet(not reocmmended)- One should consider switching to a simpler
Solvertype like approval-voting.
Good points, added to the PR comments.
bot rebase
Rebased
bot rebase
Branch is already up-to-date
bot merge
Error: Github API says https://github.com/paritytech/polkadot/pull/6278 is not mergeable
bot merge
This pull request has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/mis-configuring-pallet-elections-phragmen/2502/1