serai/substrate
akildemir c40ce00955
Slash bad validators (#468)
* implement general design

* add slashing

* bug fixes

* fix pr comments

* misc fixes

* fix grandpa abi call type

* Correct rebase artifacts I introduced

* Cleanups and corrections

1) Uses vec![] for the OpaqueKeyProof as there's no value to passing it around
2) Remove usage of Babe/Grandpa Offences for tracking if an offence is known
   for checking if can slash. If can slash, no prior offence must have been
   known.
3) Rename DisabledIndices to SeraiDisabledIndices, drop historical data for
   current session only.
4) Doesn't remove from the pre-declared upcoming Serai set upon slash due to
   breaking light clients.
5) Into/From instead of AsRef for KeyOwnerProofSystem's generic to ensure
   safety of the conversion.

* Correct deduction from TotalAllocatedStake on slash

It should only be done if in set and only with allocations contributing to
TotalAllocatedStake (Allocation + latest session's PendingDeallocation).

* Changes meant for prior commit

---------

Co-authored-by: Luke Parker <lukeparker5132@gmail.com>
2023-12-16 17:44:08 -05:00
..
abi Slash bad validators (#468) 2023-12-16 17:44:08 -05:00
client Remove the RemoveParticipant protocol for having new DKGs specify the participants which were removed 2023-12-14 23:51:57 -05:00
coins Remove redundant fields from dex-pallet, add cargo machete ignores 2023-12-11 07:47:23 -05:00
dex/pallet Remove redundant fields from dex-pallet, add cargo machete ignores 2023-12-11 07:47:23 -05:00
in-instructions Remove redundant fields from dex-pallet, add cargo machete ignores 2023-12-11 07:47:23 -05:00
node signals-primitives, plus various minor tweaks 2023-12-06 09:53:06 -05:00
primitives Move serai-client off serai-runtime, MIT licensing it 2023-12-07 02:30:09 -05:00
runtime Slash bad validators (#468) 2023-12-16 17:44:08 -05:00
signals Remove redundant fields from dex-pallet, add cargo machete ignores 2023-12-11 07:47:23 -05:00
validator-sets Slash bad validators (#468) 2023-12-16 17:44:08 -05:00