Improve gossipsub block processing

This commit is contained in:
Paul Hauner
2019-03-31 17:27:04 +11:00
parent c596e3f7d7
commit a93f898946
5 changed files with 160 additions and 45 deletions

View File

@@ -208,8 +208,9 @@ impl MessageHandler {
fn handle_gossip(&mut self, peer_id: PeerId, gossip_message: PubsubMessage) {
match gossip_message {
PubsubMessage::Block(message) => {
self.sync
.on_block_gossip(peer_id, message, &mut self.network_context)
let _should_foward_on =
self.sync
.on_block_gossip(peer_id, message, &mut self.network_context);
}
PubsubMessage::Attestation(message) => {
self.sync