mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-19 09:06:10 +00:00
Do not include voters that have zero voter weight in the election snapshot (#14245)
Co-authored-by: parity-processbot <>
This commit is contained in:
1 parent
f008e06985
commit
9f92437c8c
5 files changed
+79
-13
No files matched your search
@@ -501,12 +501,6 @@ impl ElectionDataProvider for StakingMock {
|
||||
let mut current = Targets::get();
|
||||
current.push(target);
|
||||
Targets::set(current);
|
||||
|
||||
// to be on-par with staking, we add a self vote as well. the stake is really not that
|
||||
// important.
|
||||
let mut current = Voters::get();
|
||||
current.push((target, ExistentialDeposit::get() as u64, bounded_vec![target]));
|
||||
Voters::set(current);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user