referrerpolicy=no-referrer-when-downgrade

Crate polkadot_node_network_protocol

Source
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 OurView with 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.
ReputationChange
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.
WrongVariant
An error indicating that this the over-arching message type had the wrong variant

Enums§

CollationProtocols
A protocol-versioned type for collation.
ObservedRole
The advertised role of a node.
UnifiedReputationChange
Unified annoyance cost and good behavior benefits.
ValidationProtocols
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 peers with the specified version.

Type Aliases§

ApprovalDistributionMessage
Version-annotated messages used by the approval distribution subsystem.
BitfieldDistributionMessage
Version-annotated messages used by the bitfield distribution subsystem.
CollatorProtocolMessage
Version-annotated messages used by the collator protocol subsystem.
GossipSupportNetworkMessage
Version-annotated messages used by the gossip-support subsystem (this is void).
StatementDistributionMessage
Version-annotated messages used by the statement distribution subsystem.
VersionedCollationProtocol
All supported versions of the collation protocol message.
VersionedValidationProtocol
All supported versions of the validation protocol message.