polkadot
polkadot copied to clipboard
runtime: past session slashing runtime API
Closes #6559. Closes #6560. Closes #6561.
Implements these methods for Rococo/Versi. Although there's no slashing there due to no staking pallet.
cumulus companion: https://github.com/paritytech/cumulus/pull/2160
I don't see this part from #6560:
The caller of this API will need to pass the relay_parent of the candidate when
CandidateIncludedevent was emitted. This way we can guarantee that the session_index of that relay_parent is the one we need for the key ownership proof. Consideration: note thatsession_indexfrom the parachains perspective and fromsesssion(/historical) can differ. Make sure we're not making an off-by-one error on session boundaries when calculating the key ownership proof.
Yes, it's part of https://github.com/paritytech/polkadot/issues/5947. I've decided to separate runtime from client changes. Will submit a separate PR on top of this one.
bot merge