parity-zcash/p2p/src/config.rs

13 lines
339 B
Rust
Raw Normal View History

2016-10-04 03:33:23 -07:00
use std::net::IpAddr;
use net::Config as NetConfig;
#[derive(Debug)]
pub struct Config {
/// Configuration for every connection.
pub connection: NetConfig,
/// Connect to these nodes to retrieve peer addresses, and disconnect.
pub seednodes: Vec<IpAddr>,
/// Connect only ot these nodes.
pub limited_connect: Option<Vec<IpAddr>>,
}