Restore the reputation penalty for timeouts (#5984)

This commit is contained in:
Pierre Krieger
2020-05-12 17:08:05 +02:00
committed by GitHub
parent 246f7ae368
commit b4b1293c78
2 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -329,7 +329,7 @@ impl<B: BlockT, H: ExHashT> NetworkBehaviourEventProcess<block_requests::Event<B
protocol: self.block_requests.protocol_name().to_vec(),
request_duration,
});
self.substrate.disconnect_peer(&peer);
self.substrate.on_block_request_failed(&peer);
}
}
}