Report when peer is clogged (#1528)

This commit is contained in:
Pierre Krieger
2019-01-23 14:30:20 +01:00
committed by Gav Wood
parent 28c37ef419
commit cd86643f33
7 changed files with 107 additions and 16 deletions
+3
View File
@@ -401,6 +401,9 @@ fn run_thread<B: BlockT + 'static, S: NetworkSpecialization<B>, H: ExHashT>(
NetworkServiceEvent::CustomMessage { node_index, data, .. } => {
protocol.handle_packet(&mut net_sync, node_index, &data);
}
NetworkServiceEvent::Clogged { node_index, .. } => {
protocol.on_clogged_peer(&mut net_sync, node_index);
}
};
Ok(())