Fix sync logging (#5879)

This commit is contained in:
Bastian Köcher
2020-05-04 13:43:08 +02:00
committed by GitHub
parent f37927d37d
commit 3d188ef17d
2 changed files with 17 additions and 14 deletions
+2 -2
View File
@@ -751,7 +751,7 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
None
};
let block_data = message::generic::BlockData {
hash: hash,
hash,
header: if get_header { Some(header) } else { None },
body: if get_body {
self.context_data
@@ -783,7 +783,7 @@ impl<B: BlockT, H: ExHashT> Protocol<B, H> {
}
let response = message::generic::BlockResponse {
id: request.id,
blocks: blocks,
blocks,
};
trace!(target: "sync", "Sending BlockResponse with {} blocks", response.blocks.len());
self.send_message(&peer, None, GenericMessage::BlockResponse(response))