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

Update pallet conviction voting to support Block Number Provider #6621

Conversation

dharjeezy
Copy link
Contributor

@dharjeezy dharjeezy commented Nov 22, 2024

This PR introduces BlockNumberProvider config for the conviction voting pallet.
closes part of #6297

Polkadot address: 12GyGD3QhT4i2JJpNzvMf96sxxBLWymz4RdGCxRH5Rj5agKW

@dharjeezy dharjeezy requested a review from a team as a code owner November 22, 2024 23:43
@dharjeezy
Copy link
Contributor Author

can you help review this too @gui1117

Copy link
Contributor

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

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

Looks good to me

prdoc/prdoc/pr_6621.prdoc Outdated Show resolved Hide resolved
prdoc/prdoc/pr_6621.prdoc Outdated Show resolved Hide resolved
@gui1117 gui1117 added the T2-pallets This PR/Issue is related to a particular pallet. label Dec 2, 2024
@PolkadotDom
Copy link
Contributor

Does this need a migration? If I'm reading correctly looks like the locks would expire prematurely for Parachains if BlockNumberProvider was set to relaychain. Though perhaps premature lock expiration isn't worth the hassle / might just be Hydration w/ the conviction pallet.

@gui1117
Copy link
Contributor

gui1117 commented Jan 25, 2025

Does this need a migration? If I'm reading correctly looks like the locks would expire prematurely for Parachains if BlockNumberProvider was set to relaychain. Though perhaps premature lock expiration isn't worth the hassle / might just be Hydration w/ the conviction pallet.

you are right.
Some pallet are on polkadot relay chain and we introduce the block number provider so that we can move them to asset hub and at the same time keeping the block number as provided by the relay chain. In this scenario we might not need a migration because we move from relay chain to asset hub with block number provided by relay chain.

That said a migration is always good to have for all other situations.

@muharem
Copy link
Contributor

muharem commented Feb 7, 2025

bot help

@command-bot
Copy link

command-bot bot commented Feb 7, 2025

Here's a link to docs

Copy link
Contributor

github-actions bot commented Feb 7, 2025

We have migrated the command bot to GHA

Please, see the new usage instructions here or here. Soon the old commands will be disabled.

@muharem
Copy link
Contributor

muharem commented Feb 7, 2025

bot fmt

@command-bot
Copy link

command-bot bot commented Feb 7, 2025

@muharem https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/8160694 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh". Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 1-365b9fc9-76e8-416a-999b-74f01eb16c80 to cancel this command or bot cancel to cancel all commands in this pull request.

Copy link
Contributor

github-actions bot commented Feb 7, 2025

We have migrated the command bot to GHA

Please, see the new usage instructions here or here. Soon the old commands will be disabled.

@command-bot
Copy link

command-bot bot commented Feb 7, 2025

@muharem Command "$PIPELINE_SCRIPTS_DIR/commands/fmt/fmt.sh" has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/8160694 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/8160694/artifacts/download.

@muharem muharem added this pull request to the merge queue Feb 7, 2025
Merged via the queue into paritytech:master with commit 1833515 Feb 7, 2025
203 of 207 checks passed
@gui1117
Copy link
Contributor

gui1117 commented Feb 11, 2025

maybe all 3 PRs: #6715 #6623 and #6621 could altogether get a small tip.
But I don't have writes for tipping

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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants