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:
Gavin Wood
2019-12-01 10:13:09 +01:00
committed by GitHub
parent 5ccf474d8d
commit fd1cec850e
3 changed files with 415 additions and 183 deletions
@@ -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;