Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Give control over the peers of custom notification protocols #7072

@tomaka

Description

@tomaka

The Polkadot collation and validator-to-validator communication protocols require the node to be connected to specific sets of peers. As an example, we want validators to reserve incoming slots for collators, and not have all its slots occupied by relay chain full nodes.

Rather than changing the peerset and try to fit all use-cases in it (#6087), an alternative idea is to:

  • Let the current peerset handle the default protocols (block announces, transactions, syncing)
  • Let the code that registers a notification protocol control, for this individual notification protocol, which nodes to establish outgoing substreams to, and whether to accept incoming substreams.

The exact API details are still blurry, but I prefer this approach over trying to make the peerset suit our use-cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    J0-enhancementAn additional feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions