Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Draft: Block relay POC (proposal 2) #46

Closed
wants to merge 6 commits into from

Conversation

rahulksnv
Copy link

Main changes:
1. ChainSync currently calls into the block request handler directly. Instead, move the block request handler behind a trait. This allows new protocols to be plugged into ChainSync.
2. BuildNetworkParams is changed so that custom relay protocol implementations can be (optionally) passed in during network creation time. If custom protocol is not specified, it defaults to the existing block handler
3. BlockServer and BlockDownloader traits are introduced for the protocol implementation. The existing block handler has been changed to implement these traits

@nazar-pc nazar-pc self-requested a review March 29, 2023 06:06
Copy link
Member

@nazar-pc nazar-pc left a comment

Choose a reason for hiding this comment

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

Should be upstreamable even, assuming it is a sufficient API for what we're trying to do

rahulksnv added a commit that referenced this pull request Apr 5, 2023
@rahulksnv rahulksnv closed this Apr 9, 2023
@rahulksnv rahulksnv deleted the rsub/block-relay-poc branch April 11, 2023 00:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants