Skip to content

Conversation

@colinlyguo
Copy link

@colinlyguo colinlyguo commented Aug 11, 2025

This PR is a robustness fix that pushes the header to result before checking the next header in get_headers_response. Previously, when hitting a limit, one valid header was omitted from the response.

The spec: https://github.com/ethereum/devp2p/blob/40ab248bf7e017e83cc9812a4e048446709623e8/caps/eth.md#blockheaders-0x04

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 11, 2025

CodSpeed Performance Report

Merging #318 will not alter performance

Comparing fix/headers-push-before-limit-check (ac0db02) with scroll (b364426)

Summary

✅ 77 untouched benchmarks

@colinlyguo colinlyguo changed the title fix: push header before limit check in get_headers_response fix: push header before limit check in get_headers_response Aug 11, 2025
@colinlyguo colinlyguo requested a review from greged93 August 11, 2025 12:56
Copy link

@greged93 greged93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@greged93 greged93 merged commit 74dd0bd into scroll Aug 11, 2025
46 checks passed
@greged93 greged93 deleted the fix/headers-push-before-limit-check branch August 11, 2025 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants