Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest lookup type into request id SingleBlock and SingleBlob #5562

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Part of:

It's unnecessary to have distinct RequestIds for parent and current block lookups. The router does not need to be concerned with this distinction, only the block lookups struct needs to know where to route the response.

Proposed Changes

Nest lookup type into request id SingleBlock and SingleBlob.

This PR does not change any sync logic. It fixes a typo in the test no_peer_penalty_when_rpc_response_already_known_from_gossip which was fetching the wrong ID

Copy link
Member

@realbigsean realbigsean left a comment

Choose a reason for hiding this comment

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

Nice simplification ✅

@realbigsean
Copy link
Member

@Mergifyio queue

Copy link

mergify bot commented Apr 11, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 34dbb32

@realbigsean realbigsean added the ready-for-merge This PR is ready to merge. label Apr 11, 2024
mergify bot added a commit that referenced this pull request Apr 11, 2024
@mergify mergify bot merged commit 34dbb32 into sigp:unstable Apr 11, 2024
29 checks passed
@dapplion dapplion deleted the sync-lookup-nest-lookup-id branch April 12, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants