From d3589d1bf5991be3e89b118eed4e371b4c953ce3 Mon Sep 17 00:00:00 2001 From: Gary Yu Date: Thu, 11 Oct 2018 16:47:27 +0800 Subject: [PATCH] small speed optimization for header sync (#1719) --- p2p/src/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/src/protocol.rs b/p2p/src/protocol.rs index 330f0531..b3083732 100644 --- a/p2p/src/protocol.rs +++ b/p2p/src/protocol.rs @@ -186,7 +186,7 @@ impl MessageHandler for Protocol { let headers: Headers = headers_streaming_body( conn, msg.header.msg_len, - 8, + 32, &mut total_read, &mut reserved, header_size,