Fixed consensus message garbage collection & DB initialization (#841)

* Consensus cleanup

* Fixed DB initialization issue

* Spacing
This commit is contained in:
Arkadiy Paronyan
2018-09-29 16:53:47 +02:00
committed by GitHub
parent e1e6c19f64
commit d4dbc306e8
4 changed files with 57 additions and 33 deletions
+1
View File
@@ -105,6 +105,7 @@ impl Specialization<Block> for Protocol {
}
fn maintain_peers(&mut self, _ctx: &mut Context<Block>) {
self.consensus_gossip.collect_garbage(None);
}
fn on_block_imported(&mut self, _ctx: &mut Context<Block>, _hash: Hash, _header: &Header) {