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(dot/parachain): create skeleton for bitfield distribution subsystem #4234

Open
Tracked by #3599
haikoschol opened this issue Oct 8, 2024 · 0 comments
Open
Tracked by #3599
Labels
S-subsystems-availability issues related to polkadot host availability subsystem functionality.

Comments

@haikoschol
Copy link
Contributor

Issue summary

  • Create a new package called bitfielddistribution
  • Define overseer messages
    • DistributeBitfield
      • relay parent hash
      • parachaintypes.UncheckedSignedAvailabilityBitfield
  • Define network protocol messages (in the case of multiple versions, only handle the latest for now)
    • BitfieldProtocolMessage
      • only one possible value, with the same content as DistributeBitfield overseer message
  • Create a struct called BitfieldDistribution and implement the Subsystem interface on it
  • Register bitfield distribution subsystem with overseer
  • Create (empty) methods to handle the following messages:
    • DistributeBitfield
    • network bridge events
      • PeerConnected
      • PeerDisconnected
      • NewGossipTopology
      • PeerViewChanged
      • OurViewChanged
      • PeerMessage (payload: parachaintypes.UncheckedSignedAvailabilityBitfield)
      • UpdatedAuthorityIds
    • overseer signals
      • ActiveLeavesUpdate
  • Forward the above messages to the bitfield distribution subsystem from overseer
  • Add tests

Other information and links

Look at other skeleton PRs to get an idea of what to code and what will become and TODO and a new issue

@haikoschol haikoschol added the S-subsystems-availability issues related to polkadot host availability subsystem functionality. label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-subsystems-availability issues related to polkadot host availability subsystem functionality.
Projects
None yet
Development

No branches or pull requests

1 participant