[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 authored and GitHub committed 2024-04-29 15:55:45 +00:00
1 parent f34d8e3cf0
commit 0031d49d1e
4 files changed
+113 -1

No files matched your search

+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