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
New root_testing
pallet
#12451
Merged
paritytech-processbot
merged 26 commits into
paritytech:master
from
Szegoo:offences-fill-block
Nov 13, 2022
Merged
New root_testing
pallet
#12451
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
aae3ad4
Move fill_block to RootOffences
Szegoo fae1f2f
docs
Szegoo 450b02f
new pallet
Szegoo dd5be15
new line
Szegoo 31957e7
Merge branch 'paritytech:master' into offences-fill-block
Szegoo 85de51f
fix
Szegoo 796b021
Update frame/root-testing/src/lib.rs
Szegoo 6dc4371
Update frame/root-testing/src/lib.rs
Szegoo 10654bc
Update bin/node/runtime/src/lib.rs
Szegoo afb0518
Update frame/root-testing/src/lib.rs
Szegoo b8e7c21
Update frame/root-testing/src/lib.rs
Szegoo 346070b
Update frame/root-testing/src/lib.rs
Szegoo f7ca099
fixes
Szegoo 95d734b
Merge branch 'paritytech:master' into offences-fill-block
Szegoo 76c01ec
problem solved
Szegoo 97cd12c
revert
Szegoo 667b5da
fix dependency
Szegoo 5c46eff
hopefully making the CI happy
Szegoo 6356478
...
Szegoo 3ad36d1
Merge branch 'paritytech:master' into offences-fill-block
Szegoo 6e37379
Merge branch 'paritytech:master' into offences-fill-block
Szegoo 0780410
Merge branch 'master' into offences-fill-block
Szegoo a52b05e
dummy call
Szegoo 9099a55
Merge branch 'paritytech:master' into offences-fill-block
Szegoo 62e4f83
remove dummy
Szegoo 370f46e
fix warning
Szegoo 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
[package] | ||
name = "pallet-root-offences" | ||
version = "1.0.0" | ||
version = "1.0.0-dev" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
edition = "2021" | ||
license = "Apache-2.0" | ||
homepage = "https://substrate.io" | ||
repository = "https://github.com/paritytech/substrate/" | ||
description = "FRAME root offences pallet" | ||
readme = "README.md" | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
@@ -17,7 +18,6 @@ scale-info = { version = "2.1.1", default-features = false, features = ["derive" | |
|
||
pallet-session = { version = "4.0.0-dev", features = [ "historical" ], path = "../../frame/session", default-features = false } | ||
pallet-staking = { version = "4.0.0-dev", default-features = false, path = "../../frame/staking" } | ||
pallet-offences = { version = "4.0.0-dev", default-features = false, path = "../../frame/offences" } | ||
|
||
frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" } | ||
frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" } | ||
|
@@ -45,7 +45,6 @@ std = [ | |
"frame-system/std", | ||
"pallet-session/std", | ||
"pallet-staking/std", | ||
"pallet-offences/std", | ||
"scale-info/std", | ||
"sp-runtime/std", | ||
] |
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,4 +1,4 @@ | ||
# Sudo Offences Pallet | ||
# Root Offences Pallet | ||
|
||
Pallet that allows the root to create an offence. | ||
|
||
|
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
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.
this breaks transaction version.
can we have a dummy call to preserve the call index of the other calls to reduce the impact?
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.
What would that call look like? Or could there be a more elegant solution to this?
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 recall there were some discussion about specify call index to avoid this kind of issue but can't find it anymore. That will be the proper solution.
For now, maybe just
pub fn removed_call_do_not_use(origin: OriginFor<T>, _ratio: Perbill)
and make the weight to be block weight so it cannot be includedThere 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.
@xlc do we even need
_ratio
as an argument?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.
we don't need the argument.
@xlc is this a big deal though? most apps should handle this dynamically. For others, in any case, almost all releases contain a tx-version breaking change (bth we are not even bumping it strictly).
I would say let's break it and move on.
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.
@kianenigma I removed the dummy call then.