Expand description
Network protocol types for parachains.
Modules§
- authority_
discovery  - Accessing authority discovery service Authority discovery service interfacing.
 - grid_
topology  - Grid topology support module Grid topology support implementation The basic operation of the 2D grid topology is that:
 - peer_
set  - Peer-sets and protocols used for parachains. All peersets and protocols used for parachains.
 - request_
response  - Request/response protocols used in Polkadot.
Overview over request/responses as used in 
Polkadot. - v1
 - v1 notification protocol types.
 - v2
 - v2 network protocol types.
 - v3
 - v3 network protocol types. Purpose is for changing ApprovalDistributionMessage to include more than one assignment and approval in a message.
 
Macros§
- our_
view  - Construct a new 
OurViewwith the given chain heads, finalized number 0 - view
 - Construct a new view with the given chain heads and finalized number 0.
 
Structs§
- OurView
 - Specialized wrapper around 
View. - PeerId
 - Identifier of a peer of the network.
 - Reputation
Change  - Description of a reputation adjustment for a node.
 - View
 - A succinct representation of a peer’s view. This consists of a bounded amount of chain heads and the highest known finalized block number.
 - Wrong
Variant  - An error indicating that this the over-arching message type had the wrong variant
 
Enums§
- Collation
Protocols  - A protocol-versioned type for collation.
 - Observed
Role  - The advertised role of a node.
 - Unified
Reputation Change  - Unified annoyance cost and good behavior benefits.
 - Validation
Protocols  - A protocol-versioned type for validation.
 
Constants§
- MIN_
GOSSIP_ PEERS  - The minimum amount of peers to send gossip messages to.
 
Functions§
- filter_
by_ peer_ version  - Returns the subset of 
peerswith the specifiedversion. 
Type Aliases§
- Approval
Distribution Message  - Version-annotated messages used by the approval distribution subsystem.
 - Bitfield
Distribution Message  - Version-annotated messages used by the bitfield distribution subsystem.
 - Collator
Protocol Message  - Version-annotated messages used by the collator protocol subsystem.
 - Gossip
Support Network Message  - Version-annotated messages used by the gossip-support subsystem (this is void).
 - Statement
Distribution Message  - Version-annotated messages used by the statement distribution subsystem.
 - Versioned
Collation Protocol  - All supported versions of the collation protocol message.
 - Versioned
Validation Protocol  - All supported versions of the validation protocol message.