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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dharjeezy
Copy link
Contributor

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

@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

doc:
- audience: Runtime Dev
description: |
This PR makes the conviction voting pallet uses the relay chain as a block provider for a parachain on a regular schedule.
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't force the conviction voting pallet to use the relay chain block provider,

Suggested change
This PR makes the conviction voting pallet uses the relay chain as a block provider for a parachain on a regular schedule.
This PR makes the block number provider used in the conviction voting pallet configurable. Before this PR, conviction voting pallet always used the system block number, with this PR some runtime can opt to use the relay chain block number instead.


crates:
- name: pallet-conviction-voting
bump: minor
Copy link
Contributor

Choose a reason for hiding this comment

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

let's follow rust semver

Suggested change
bump: minor
bump: major

@gui1117 gui1117 added the T2-pallets This PR/Issue is related to a particular pallet. label Dec 2, 2024
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.

2 participants