Remove NetworkService::report_handle (#2462)

This commit is contained in:
Pierre Krieger
2019-05-04 13:58:52 +02:00
committed by Gavin Wood
parent 747df1f332
commit 35b84ae8f6
-5
View File
@@ -274,11 +274,6 @@ impl<B: BlockT + 'static, S: NetworkSpecialization<B>> Service<B, S> {
));
}
/// Return a cloneable handle for reporting peers' benefits or misbehavior.
pub fn report_handle(&self) -> ReportHandle {
ReportHandle { inner: self.peerset.clone() }
}
/// Report a given peer as either beneficial (+) or costly (-) according to the
/// given scalar.
pub fn report_peer(&self, who: PeerId, cost_benefit: i32) {