Don't inlucde nominaotrs that back no one in the snapshot.
@@ -2518,9 +2518,11 @@ impl<T: Config> Module<T> {
.map_or(true, |spans| submitted_in >= spans.last_nonzero_slash())
});
+ if !targets.is_empty() {
let vote_weight = weight_of(&nominator);
all_voters.push((nominator, vote_weight, targets))
}
+ }
all_voters
}
