Change network::sync::extra_requests to not send. (#2890)

* Change network::sync::extra_requests to not send.

Instead it only maintains the invariants and leaves the actual I/O part
to the parent module (i.e. `sync`).

* Update Cargo.lock.
This commit is contained in:
Toralf Wittner
2019-06-18 10:35:28 +02:00
committed by Arkadiy Paronyan
parent 7eb2ff760a
commit dc41558b6e
5 changed files with 417 additions and 374 deletions
+1 -2
View File
@@ -765,8 +765,7 @@ impl<B: BlockT, S: NetworkSpecialization<B>, H: ExHashT> Protocol<B, S, H> {
let outcome = self.sync.on_block_justification_data(
&mut ProtocolContext::new(&mut self.context_data, network_out),
peer,
request,
response,
response
);
if let Some((origin, hash, nb, just)) = outcome {