Newer
Older
use std::{net, path};
use message::common::Services;
use util::InternetProtocol;
#[derive(Debug, Clone)]
/// Number of threads used by p2p thread pool.
pub threads: usize,
/// Number of inbound connections.
/// Configuration for every connection.
pub connection: NetConfig,
pub peers: Vec<net::SocketAddr>,
/// Connect to these nodes to retrieve peer addresses, and disconnect.
/// p2p/nodes.csv file path.
pub node_table_path: path::PathBuf,
/// Peers with this services will get a boost in node_table.
pub preferable_services: Services,
/// Internet protocol.
pub internet_protocol: InternetProtocol,