parity-zcash/p2p/src/config.rs

22 lines
614 B
Rust
Raw Normal View History

use std::net::SocketAddr;
use std::path::PathBuf;
2016-10-04 03:33:23 -07:00
use net::Config as NetConfig;
#[derive(Debug)]
pub struct Config {
2016-10-17 16:44:52 -07:00
/// Number of threads used by p2p thread pool.
pub threads: usize,
/// Number of inbound connections.
pub inbound_connections: u32,
2016-10-17 16:44:52 -07:00
/// Number of outbound connections.
pub outbound_connections: u32,
2016-10-04 03:33:23 -07:00
/// Configuration for every connection.
pub connection: NetConfig,
/// Connect only ot these nodes.
pub peers: Vec<SocketAddr>,
2016-10-17 16:44:52 -07:00
/// Connect to these nodes to retrieve peer addresses, and disconnect.
pub seeds: Vec<String>,
/// p2p/nodes.csv file path
pub node_table_path: PathBuf,
2016-10-04 03:33:23 -07:00
}