mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 13:21:10 +00:00
New Pallet: Root offences (#11943)
* root-offences pallet * fix errors * cleaned up a bit * remove unwrap() * new pallet is getting compiled * remove unnecessary type annotations * remove more unnecessary type annotations * addidtional cleaning * commit * cleaned up * fix in logic * add event * removed Clone trait from AccountId * test module * remove unused imports * fmt * fix * separate into functions, still messy * test * first test * fmt * cleaned up a bit * separate into mock.rs and tests.rs * basic docs for now * pallet_staking GenesisiConfig * fix * added start_session * passing tests * impl GenesisConfig for pallet_session * updated event * Update frame/root-offences/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/root-offences/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * remove <T: Config * specifying trait bounds inside Config * commit * active era increases correctly :) * ExtBuilder * slashing works * new test * additional test * commit * order * fix? * fix in logic * remove unnecessary * wrap comment at 100 * fmt * merge fixes * Update frame/root-offences/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * Update frame/root-offences/src/lib.rs Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> * docs * Update frame/root-offences/README.md Co-authored-by: Andronik <write@reusable.software> * Update frame/root-offences/Cargo.toml Co-authored-by: Andronik <write@reusable.software> * license header Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Co-authored-by: Andronik <write@reusable.software>
This commit is contained in:
@@ -2523,7 +2523,7 @@ impl<T: Config> Pallet<T> {
|
||||
impl<T: Config> OnStakerSlash<T::AccountId, BalanceOf<T>> for Pallet<T> {
|
||||
fn on_slash(
|
||||
pool_account: &T::AccountId,
|
||||
// Bonded balance is always read directly from staking, therefore we need not update
|
||||
// Bonded balance is always read directly from staking, therefore we don't need to update
|
||||
// anything here.
|
||||
slashed_bonded: BalanceOf<T>,
|
||||
slashed_unlocking: &BTreeMap<EraIndex, BalanceOf<T>>,
|
||||
|
||||
Reference in New Issue
Block a user