mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 22:41:02 +00:00
Economic fixes for democracy module (#4256)
* Fix up `end_block` mess; add free preimage noting for imminents. * Fixes * Bump runtime * Update frame/democracy/src/lib.rs Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com> * Handle grumble * Update frame/democracy/src/lib.rs Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -517,7 +517,7 @@ impl<N: Ord> Peers<N> {
|
||||
}
|
||||
|
||||
fn reshuffle(&mut self) {
|
||||
let mut lucky_peers : Vec<_> = self.inner
|
||||
let mut lucky_peers: Vec<_> = self.inner
|
||||
.iter()
|
||||
.filter_map(|(id, info)| if !info.roles.is_authority() { Some(id.clone()) } else { None })
|
||||
.collect();
|
||||
@@ -670,7 +670,7 @@ impl<Block: BlockT> Inner<Block> {
|
||||
let set_id = local_view.set_id;
|
||||
|
||||
debug!(target: "afg", "Voter {} noting beginning of round {:?} to network.",
|
||||
self.config.name(), (round,set_id));
|
||||
self.config.name(), (round, set_id));
|
||||
|
||||
local_view.round = round;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user