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

Draft: modular block request handler(proposal 2)#47

Closed
rahulksnv wants to merge 7 commits intosubspace-v4from
rsub/block-relay-poc-v4
Closed

Draft: modular block request handler(proposal 2)#47
rahulksnv wants to merge 7 commits intosubspace-v4from
rsub/block-relay-poc-v4

Conversation

@rahulksnv
Copy link
Copy Markdown

@rahulksnv rahulksnv commented Apr 5, 2023

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
  4. Export the block request related protobuf schemas

@rahulksnv rahulksnv changed the title Draft: Block relay POC (proposal 2) Draft: modular block request handler(proposal 2) Apr 10, 2023
@rahulksnv rahulksnv closed this Apr 24, 2023
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.

1 participant