1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use std::{net, path};
use message::common::Services;
use net::Config as NetConfig;
use util::InternetProtocol;
#[derive(Debug, Clone)]
pub struct Config {
pub threads: usize,
pub inbound_connections: u32,
pub outbound_connections: u32,
pub connection: NetConfig,
pub peers: Vec<net::SocketAddr>,
pub seeds: Vec<String>,
pub node_table_path: path::PathBuf,
pub preferable_services: Services,
pub internet_protocol: InternetProtocol,
}