Module sc_network::config[][src]

Configuration of the networking layer.

The Params struct is the struct that must be passed in order to initialize the networking. See the documentation of Params.

Modules

identity

A node’s network identity keys.

Macros

build_multiaddr

Easy way for a user to create a Multiaddr.

Structs

AlwaysBadChecker

Dummy implementation of FetchChecker that always assumes that responses are bad.

DummyFinalityProofRequestBuilder

Implementation of FinalityProofRequestBuilder that builds a dummy empty request.

EmptyTransactionPool

Dummy implementation of the TransactionPool trait for a transaction pool that is always empty and discards all incoming transactions.

ExtTransport

Implementation of Transport whose implementation is handled by some FFI.

IncomingRequest

A single request received by a peer on a request-response protocol.

MultiaddrWithPeerId

Address of a node, including its identity.

NetworkConfiguration

Network service configuration.

OnDemand

Implements the Fetcher trait of the client. Makes it possible for the light client to perform network requests for some state.

Params

Network initialization parameters.

ProtocolId

Name of a protocol, transmitted on the wire. Should be unique for each chain. Always UTF-8.

RequestResponseConfig

Configuration for a single request-response protocol.

Enums

NodeKeyConfig

The configuration of a node’s secret key, describing the type of key and how it is obtained. A node’s identity keypair is the result of the evaluation of the node key configuration.

NonReservedPeerMode

The policy for connections to non-reserved peers.

ParseErr

Error that can be generated by parse_str_addr.

PublicKey

The public key of a node’s identity keypair.

Role

Role of the local node.

Secret

The configuration options for obtaining a secret key K.

TransactionImport

Result of the transaction import.

TransportConfig

Configuration for the transport layer.

Traits

Client

Local client abstraction for the network.

FinalityProofProvider

Finality proof provider.

FinalityProofRequestBuilder

Finality proof request builder.

TransactionPool

Transaction pool interface

Functions

parse_addr

Splits a Multiaddress into a Multiaddress and PeerId.

parse_str_addr

Parses a string address and splits it into Multiaddress and PeerId, if valid.

Type Definitions

BoxFinalityProofRequestBuilder

Shared finality proof request builder struct used by the queue.

Ed25519Secret

The options for obtaining a Ed25519 secret key.

TransactionImportFuture

Fuure resolving to transaction import result.