Skip to content

Close PR - No changes needed, boundary check correctly implemented#100

Closed
Copilot wants to merge 1 commit intofix-get-blocksfrom
copilot/sub-pr-99
Closed

Close PR - No changes needed, boundary check correctly implemented#100
Copilot wants to merge 1 commit intofix-get-blocksfrom
copilot/sub-pr-99

Conversation

Copy link

Copilot AI commented Feb 3, 2026

This PR was created to address a review comment on #99 regarding a missing boundary check for RpcRequestBlocksUntil::EndSlot in the get_blocks implementation.

Resolution

The boundary check is correctly implemented on line 354:

if !block.exists || block.slot > end_slot {
    break;
}

This check handles both EndSlot and Limit cases by breaking the loop when any block exceeds end_slot, making a separate match on the until parameter unnecessary. The original review comment was incorrect.

No code changes are required. This PR can be closed.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix boundary check in get_blocks implementation Close PR - No changes needed, boundary check correctly implemented Feb 3, 2026
Copilot AI requested a review from fanatid February 3, 2026 09:29
@fanatid fanatid closed this Feb 3, 2026
@fanatid fanatid deleted the copilot/sub-pr-99 branch February 3, 2026 09:30
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.

2 participants