config.rs 671 B
Newer Older
use std::net::SocketAddr;
Marek Kotewicz's avatar
Marek Kotewicz committed
use net::Config as NetConfig;

#[derive(Debug)]
pub struct Config {
Marek Kotewicz's avatar
Marek Kotewicz committed
	/// Number of threads used by p2p thread pool.
	pub threads: usize,
	/// Lowest supported protocol version.
	pub protocol_minimum: u32,
	/// Highest supported protocol version.
	pub protocol_maximum: u32,
	/// Number of inbound connections.
	pub inbound_connections: usize,
	/// Number of outbound connections.
	pub outbound_connections: usize,
Marek Kotewicz's avatar
Marek Kotewicz committed
	/// Configuration for every connection.
	pub connection: NetConfig,
	/// Connect only ot these nodes.
	pub peers: Vec<SocketAddr>,
Marek Kotewicz's avatar
Marek Kotewicz committed
	/// Connect to these nodes to retrieve peer addresses, and disconnect.
	pub seeds: Vec<String>,
Marek Kotewicz's avatar
Marek Kotewicz committed
}