-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow submitting offences from root #11352
Comments
cc @georgesdib |
I vote for this. |
Can we do this from governance on non-sudo chains? |
@kianenigma If it's agreed on that a new pallet should be made for this issue, I would love to work on this |
Hello @kianenigma is this agreed to be worked on now? |
would be good if this transaction is also moved from system this new pallet: substrate/frame/system/src/lib.rs Line 373 in 48de0a4
|
@omadoyeabraham @gitwithterrence Are you working on this, or is the issue free to work on? |
@kianenigma Could you assign this to me? I am currently working on this. |
@Szegoo You might want to consider getting your outstanding PRs to the finish line. As of my typing, you have 4. |
Thanks for reminding me, out of the 4 PRs two of them need to be closed(I closed them now) and for the other two, I am awaiting reviews. So I actually have 2 open PRs. |
@kianenigma @bkchr Could you please take a look at my PR? |
Would be very helpful for testing if there was a way for
root
e.g. sudo in a dev-chain to create anoffence
. This would help you test all sorts of things around the slashing and offence code.Ideally, this transaction would only accept one parameters:
offenders: Vec<(T::AccountId, Perbill)>
, and slash each of them with that fraction.One way to do this would be to add this transaction to the offences pallet. But it won't be able to work with the api above (offences pallet needs
FullIdentification
), and it would also pollute all runtime with this pallet.An alternative is to build a custom, minimal pallet that only does this.
This new pallet should strictly depend on
pallet-session
,pallet-staking
, andpallet-offences
in itstrait Config
.Having all 3 of the above, realizing the interface
offenders: Vec<(T::AccountId, Perbill)>
should also be possible.The text was updated successfully, but these errors were encountered: