We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d823e commit cef17d6Copy full SHA for cef17d6
lib/net/peer/message.rs
@@ -62,9 +62,9 @@ pub struct GetHeadersRequest {
62
impl GetHeadersRequest {
63
/// Limit bytes to read in a response to a request
64
pub const fn read_response_limit(&self) -> NonZeroUsize {
65
- // 1KB limit per header
+ // 2KB limit per header
66
const READ_HEADER_LIMIT: NonZeroUsize =
67
- NonZeroUsize::new(1024).unwrap();
+ NonZeroUsize::new(2048).unwrap();
68
let expected_headers = self.height.expect(
69
"GetHeaders height should always be Some in an outbound request",
70
) as usize
0 commit comments