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
safe multi-era slashing for NPoS #3846
Merged
Merged
Changes from 50 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
c6bdd50
define slashing spans
rphmeier fef2d4c
tests and pruning for slashing-spans record
rphmeier 59ea56a
validators get slashed before nominators
rphmeier c6c9da8
apply slash to nominators as well
rphmeier 8427efb
chill and end slashing spans
rphmeier 4288736
actually perform slashes
rphmeier 372a4ce
integration (tests failing)
rphmeier 06af8d0
prune metadata
rphmeier 2468334
fix compilation
rphmeier d0854ae
some tests for slashing and metadata garbage collection
rphmeier 47f3c54
correctly pass session index to slash handler
rphmeier 3145ac3
test span-max property for nominators and validators
rphmeier 13f3083
test that slashes are summed correctly
rphmeier 187b3f6
reward value computation
rphmeier 52ff078
implement rewarding
rphmeier e4d9864
add comment about rewards
rphmeier 459ebe7
do not adjust slash fraction in offences module
rphmeier 2d10e2c
fix offences tests
rphmeier ababe08
remove unused new_offenders field
rphmeier a682448
update runtime version
rphmeier d593569
fix up some docs
rphmeier 036fdbd
fix some CI failures
rphmeier 0d9e4da
Merge branch 'master' into rh-npos-slashing
rphmeier 0d3f17f
remove no-std incompatible vec! invocation
rphmeier 177e7e6
try to fix span-max rounding error
rphmeier ee189aa
Update srml/staking/src/slashing.rs
rphmeier e673db0
Merge branch 'master' into rh-npos-slashing
rphmeier f8e7fab
slashes from prior spans don't kick validator again
rphmeier 8a24768
more information for nominators, suppression
rphmeier 8aca6f4
ensure ledger is consistent with itself post-slash
rphmeier b165b27
implement slash out of unlocking funds also
rphmeier 76608ab
slashing: create records to be applied after-the-fact
rphmeier 9c30d7d
queue slashes for a few eras later
rphmeier d3ac5a2
method for canceling deferred slashes
rphmeier 8c245b3
Merge branch 'rh-npos-slashing' of github.com:paritytech/substrate in…
rphmeier a62d08b
Merge branch 'master' into rh-npos-slashing
rphmeier a5a8e99
attempt to fix test in CI
rphmeier 5bbdafe
Merge branch 'master' into rh-npos-slashing
rphmeier 5ba349e
storage migration for `Nominators`
rphmeier 36f3b34
update node-runtime to use SlashDeferDuration
rphmeier fd8c70f
Merge branch 'master' into rh-npos-slashing
rphmeier 11b71f3
adjust migration entry-points somewhat
rphmeier 74087ba
fix migration compilation
rphmeier b823286
add manual Vec import to migration
rphmeier 1866a50
enable migrations feature in node-runtime
rphmeier 7106425
bump runtime version
rphmeier c44ee91
Merge branch 'master' into rh-npos-slashing
rphmeier 7988052
Merge branch 'master' into rh-npos-slashing
rphmeier deda336
update to latest master crate renames
rphmeier aee412c
update to use ensure-origin
rphmeier d578e2e
Apply suggestions from code review
rphmeier 4e4c254
Merge branch 'master' into rh-npos-slashing
rphmeier a94d403
fix multi-slash removal
rphmeier 4fc80f7
initialize storage version to current in genesis
rphmeier b7599d7
add test for version initialization
rphmeier 8f9a743
Merge branch 'master' into rh-npos-slashing
rphmeier 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
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.
👍