mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +00:00
Don't inlucde nominaotrs that back no one in the snapshot. (#9017)
This commit is contained in:
@@ -2518,8 +2518,10 @@ impl<T: Config> Module<T> {
|
||||
.map_or(true, |spans| submitted_in >= spans.last_nonzero_slash())
|
||||
});
|
||||
|
||||
let vote_weight = weight_of(&nominator);
|
||||
all_voters.push((nominator, vote_weight, targets))
|
||||
if !targets.is_empty() {
|
||||
let vote_weight = weight_of(&nominator);
|
||||
all_voters.push((nominator, vote_weight, targets))
|
||||
}
|
||||
}
|
||||
|
||||
all_voters
|
||||
|
||||
Reference in New Issue
Block a user