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:
Robert Habermeier
2020-01-07 13:17:17 +01:00
committed by Gavin Wood
parent 82661cd2ce
commit 6a0e60c3a4
2 changed files with 41 additions and 3 deletions
+2 -2
View File
@@ -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);
}
}