Skip to content

Nest lookup type into request id SingleBlock and SingleBlob#5562

Merged
mergify[bot] merged 1 commit intosigp:unstablefrom
dapplion:sync-lookup-nest-lookup-id
Apr 11, 2024
Merged

Nest lookup type into request id SingleBlock and SingleBlob#5562
mergify[bot] merged 1 commit intosigp:unstablefrom
dapplion:sync-lookup-nest-lookup-id

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

@mergify
Copy link

mergify bot commented Apr 11, 2024

queue

✅ The pull request has been merged automatically

Details

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
@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