[Staking] Not allow reap stash for virtual stakers (#4311)

Related to https://github.com/paritytech/polkadot-sdk/pull/3905.

Since virtual stakers does not have a real balance, they should not be
allowed to be reaped.

The proper reaping for agents slashed will be done in a separate PR.
This commit is contained in:
Ankan
2024-04-29 17:55:45 +02:00
committed by GitHub
parent f34d8e3cf0
commit 0031d49d1e
4 changed files with 113 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
title: Not allow reap stash for virtual stakers.
doc:
- audience: Runtime Dev
description: |
Add guards to staking dispathables to prevent virtual stakers to be reaped.
crates:
- name: pallet-staking