-
Notifications
You must be signed in to change notification settings - Fork 766
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
Add block provider to core-fellowship #6978
Open
PolkadotDom
wants to merge
35
commits into
paritytech:master
Choose a base branch
from
PolkadotDom:dom/fellowship-core-block-provider
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+338
−69
Open
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
ff8af08
Initial setup
PolkadotDom 7ac7223
testing cont'd
PolkadotDom 5871063
Add to test configs
PolkadotDom 4434d98
Finish switch to generic block provider
PolkadotDom cdd6c92
Update v0 to v1 migration in preparation of v2
PolkadotDom b717aaf
Bind block numbers provider to block number
PolkadotDom 0992736
Revert block number bind, add default
PolkadotDom ea932ff
Set westend configs
PolkadotDom 1c6cc1a
Update comments
PolkadotDom 78c05e6
Update comments
PolkadotDom c6faf72
Add BlockNumberProvider to kitchen sink
PolkadotDom d70ff75
Set block number provider to frame_system
PolkadotDom ed0cad8
fmt
PolkadotDom b3f5112
Revert "Update v0 to v1 migration in preparation of v2"
PolkadotDom eb1d578
Update migration
PolkadotDom 8bbd0ce
Core fellowship migration v1 to v2
PolkadotDom ae916de
Syntax and accessibility changes
PolkadotDom c9f6274
Use relay chain block number instead of system
PolkadotDom 8f53c22
implement migration for westend, spec version increase, remove old mi…
PolkadotDom 963a121
Merge remote-tracking branch 'upstream/master' into dom/fellowship-co…
PolkadotDom 8b78e1b
Couple fixes
PolkadotDom 1f2a1c4
Update comments
PolkadotDom 2a1b783
Fix benchmarking
PolkadotDom b9318a7
fmt
PolkadotDom 2e6268c
Merge remote-tracking branch 'upstream/master' into dom/fellowship-co…
PolkadotDom 9992f1d
Prdoc and cargo files
PolkadotDom 9c8b473
Update semver bumps
PolkadotDom 6a1ada8
Update Cargo.lock
PolkadotDom 1395fc4
Revert cargo.toml bumps & spec version bumps
PolkadotDom 7d64dae
pre and post check, docs update, naming update, accomodate past and f…
PolkadotDom 2502dab
update docs
PolkadotDom 66f33ed
Update pr_6978.prdoc
PolkadotDom dbf8243
Merge remote-tracking branch 'upstream/master' into dom/fellowship-co…
PolkadotDom 8f737c7
Update do_import function to use blocknumberprovider
PolkadotDom 21e8d30
Docs
PolkadotDom File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
title: 'Adds BlockNumberProvider to pallet-core-fellowship' | ||
doc: | ||
- audience: Runtime Dev | ||
description: |- | ||
This PR adds a parameter 'BlockNumberProvider' to the pallet-core-fellowship | ||
config such that a block provider can be set for use in the pallet. This would | ||
usually be the local system pallet or the appropriate relay chain. Previously | ||
it defaulted to the local system pallet. | ||
- audience: Runtime User | ||
description: |- | ||
This PR updates the Westend runtime to use the relaychain's block number for | ||
core-fellowship pallet logic. The type remains the same, but the values have | ||
shifted. | ||
crates: | ||
- name: pallet-core-fellowship | ||
bump: major | ||
- name: sp-runtime | ||
bump: major | ||
- name: collectives-westend-runtime | ||
bump: minor | ||
- name: kitchensink-runtime | ||
bump: patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
westend is a testnet, should we notify
Runtime User
that westend collective fellowship pallet migrated from using parachain block number to relay chain block number?(More generally I wonder how easy it is for tools to differentiate between both types. Some tools have to be careful and get the correct meaning for the block number.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch on this. Will update here and other PR