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
Remove implicit approval chilling upon slash. #12420
Merged
paritytech-processbot
merged 25 commits into
master
from
kiz-slashing-spans-snapshot-fix
Dec 12, 2022
Merged
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e067a17
don't read slashing spans when taking election snapshot
kianenigma 6ba277b
update cargo.toml
kianenigma df5cbe2
bring back remote test
kianenigma 6a9ad83
undo doc changes
kianenigma 88f8470
fix merge stuff
kianenigma cc184dc
fix npos-voters function sig
kianenigma f86e368
remove as much redundant diff as you can
kianenigma c67961d
Update frame/staking/src/pallet/mod.rs
kianenigma d23326f
update'
kianenigma 87b488c
Merge branch 'kiz-slashing-spans-snapshot-fix' of github.com:parityte…
kianenigma d644f8f
fix
kianenigma 1f64829
Update frame/staking/src/pallet/impls.rs
kianenigma 67ef21d
update lock
kianenigma ceccee2
Merge branch 'kiz-slashing-spans-snapshot-fix' of github.com:parityte…
kianenigma 32abede
Master.into()
kianenigma a89dce4
Merge branch 'master' into kiz-slashing-spans-snapshot-fix
Ank4n 4871296
Master.into()
kianenigma d045394
Merge branch 'kiz-slashing-spans-snapshot-fix' of github.com:parityte…
kianenigma fd03b10
fix all tests
kianenigma 1525744
review comments
kianenigma a254b23
fmt
kianenigma 99396f3
fix offence bench
kianenigma df93a94
clippy
kianenigma 9354b6b
Merge branch 'master' of https://github.com/paritytech/substrate into…
6b61c24
".git/.scripts/bench-bot.sh" pallet dev pallet_staking
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
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.
Ok. This has changed from 2 to 4. I don't see any justification for either 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.
Kinda puzzling to me too, I think this is set to a 100, so this iterates from 25 to a 100. Why this magic 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.
We know that this code path's complexity is a function
MaxNominators
andMaxValidaotrs
. That's called a component. So you chose a subset of the entire values that the component has, and let the benchmark run over that range.In some cases, you can let it run over the entire range of the component, but in this case that would lead to some test failures because e.g.
MaxNominators
is not allowed anyways.with that in mind, why /2 and /4? it is entirely arbitrary. If you want to chose a "better" magic number, please suggest. I recall /4 worked better with tests, although I ran them again with /2 and /4 and they all, work, and without a surprise, the benchmark values are the same.
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 will revert it back to /2.