Struct sc_peerset::SetConfig
source · pub struct SetConfig {
pub in_peers: u32,
pub out_peers: u32,
pub bootnodes: Vec<PeerId>,
pub reserved_nodes: HashSet<PeerId>,
pub reserved_only: bool,
}
Expand description
Configuration for a single set of nodes.
Fields§
§in_peers: u32
Maximum number of ingoing links to peers.
out_peers: u32
Maximum number of outgoing links to peers.
bootnodes: Vec<PeerId>
List of bootstrap nodes to initialize the set with.
Note: Keep in mind that the networking has to know an address for these nodes, otherwise it will not be able to connect to them.
reserved_nodes: HashSet<PeerId>
Lists of nodes we should always be connected to.
Note: Keep in mind that the networking has to know an address for these nodes, otherwise it will not be able to connect to them.
reserved_only: bool
If true, we only accept nodes in SetConfig::reserved_nodes
.