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

feat(parachain): availability distribution skeleton #4591

Open
wants to merge 3 commits into
base: feat/parachain
Choose a base branch
from

Conversation

haikoschol
Copy link
Contributor

Changes

This PR introduces the availability distribution subsystem. It includes a few minor changes to code outside of dot/parachain and a fix for some tests that was cherry picked from development.

Tests

go test ./dot/parachain/availability-distribution

Issues

#4485

@haikoschol haikoschol force-pushed the haiko/availability-distribution/skeleton branch from ddb5300 to ea3bb31 Compare March 7, 2025 14:57
var _ parachaintypes.Subsystem = (*AvailabilityDistribution)(nil)

type Network interface {
RegisterRequestHandler(subprotocolID protocol.ID, handler network.RequestHandler)
Copy link
Member

Choose a reason for hiding this comment

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

I might be missing something, but why can the subsystem register a handler? I mean, in what specific case the subsystem will register a request handler for a specific network protocol id?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The availability distribution subsystem is responsible for fetching erasure chunks and PoVs as well as responding to those requests from other nodes.

So on startup the subsystem will register handlers for req_chunk/1 (and/or req_chunk/2) and req_pov/1.

@haikoschol haikoschol requested a review from P1sar as a code owner March 7, 2025 15:14
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