This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Migrate pallet-grandpa to attribute macros #8724
Merged
Merged
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
f6e3a3c
frame/grandpa: migrate Config
octol b2d7383
frame/grandpa: migrate decl_module
octol 19ac9fb
frame/grandpa: migrate decl_event
octol 962a744
frame/grandpa: migrate decl_error
octol c172e99
frame/grandpa: migrate decl_storage
octol e5656d4
frame/grandpa: make report_equivocation_unsigned pub(super)
octol 0781fe6
frame/grandpa: remove unused imports
octol 9008771
frame/grandpa: replace deprecated Module with Pallet
octol 4cf4f9d
frame/grandpa: add RawEvent for compatibility
octol a1c02cf
frame/grandpa: create migration to new storage prefix
octol 0d9c53f
Merge remote-tracking branch 'upstream/master' into jon/migrate-grand…
octol 7ae74a0
frame/grandpa: bump version to 4.0.0
octol 1c8e18a
frame/grandpa: address review comments
octol ef2dfb4
Merge remote-tracking branch 'upstream/master' into jon/migrate-grand…
octol 73dce62
Merge remote-tracking branch 'upstream/master' into jon/migrate-grand…
octol 2065326
Try using version 3.1 instead
octol 5266da4
frame/grandpa: tweak log text to say cancelled
octol 32ba95b
Merge remote-tracking branch 'upstream/master' into jon/migrate-grand…
octol 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "pallet-grandpa" | ||
version = "3.0.0" | ||
version = "4.0.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Appears the Polkadot companion check fails with the version bumped |
||
authors = ["Parity Technologies <admin@parity.io>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
@@ -17,6 +17,7 @@ codec = { package = "parity-scale-codec", version = "2.0.0", default-features = | |
sp-application-crypto = { version = "3.0.0", default-features = false, path = "../../primitives/application-crypto" } | ||
sp-core = { version = "3.0.0", default-features = false, path = "../../primitives/core" } | ||
sp-finality-grandpa = { version = "3.0.0", default-features = false, path = "../../primitives/finality-grandpa" } | ||
sp-io = { version = "3.0.0", default-features = false, path = "../../primitives/io" } | ||
sp-session = { version = "3.0.0", default-features = false, path = "../../primitives/session" } | ||
sp-std = { version = "3.0.0", default-features = false, path = "../../primitives/std" } | ||
sp-runtime = { version = "3.0.0", default-features = false, path = "../../primitives/runtime" } | ||
|
@@ -31,7 +32,6 @@ log = { version = "0.4.14", default-features = false } | |
[dev-dependencies] | ||
frame-benchmarking = { version = "3.1.0", path = "../benchmarking" } | ||
grandpa = { package = "finality-grandpa", version = "0.14.0", features = ["derive-codec"] } | ||
sp-io = { version = "3.0.0", path = "../../primitives/io" } | ||
sp-keyring = { version = "3.0.0", path = "../../primitives/keyring" } | ||
pallet-balances = { version = "3.0.0", path = "../balances" } | ||
pallet-offences = { version = "3.0.0", path = "../offences" } | ||
|
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.
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.
I'm not entirely sure about this. Seems awfully convenient, but on the other hand we don't seem the change these unless we update the substrate version?
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.
I think node-template-runtime should use the latest pallet-grandpa if possible, thus I prefer to update here.
But next time we release node-template-runtime we should be careful to bump to a major version (or we can bump to a major version in this PR and not release yet).
same for other crates.