-
Notifications
You must be signed in to change notification settings - Fork 61
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
MD867 - Enable/Disable Slashing #874
base: master
Are you sure you want to change the base?
MD867 - Enable/Disable Slashing #874
Conversation
…-867-enable-disable-slashing
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 job @augustocollado !
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.
Changes look good! Only a few small comments.
Also, I see a lot of formatting changes that should disappear after running cargo fmt
. Can you please check that as well? Thanks!
Other than that the PR looks good. Great job 🥇
I undid this change because it wouldn't compile in my env. Probably it will compile and pass the fmt check if I change my rust version. I'll try that later! |
I've set my rust version to 1.81.0 stable, ran fmt, and among the many fmt changes (already pushed in this PR), there's one that breaks compilation: |
There was something wrong with my environment, but now using 1.81.0 stable fmt & builds are fine. Thanks @Agusrodri for the support! |
This PR introduces changes to the pallet
external-validator-slashes
.It adds a new sudo-only extrinsic to switch between three modes for slashing:
It also adds tests for the three modes using babe offences.
Note: Weights are not correct, they need to be properly benchmarked.