mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 18:37:59 +00:00
do not chill indirectly-slashed nominators (#4553)
* do not chill indirectly-slashed nominators * test nomination non-kick and vote ignoring behavior
This commit is contained in:
committed by
Gavin Wood
parent
82661cd2ce
commit
6a0e60c3a4
@@ -392,9 +392,9 @@ fn slash_nominators<T: Trait>(
|
||||
);
|
||||
|
||||
if target_span == Some(spans.span_index()) {
|
||||
// Chill the nominator outright, ending the slashing span.
|
||||
// End the span, but don't chill the nominator. its nomination
|
||||
// on this validator will be ignored in the future.
|
||||
spans.end_span(now);
|
||||
<Module<T>>::chill_stash(stash);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user