|
|
@@ -80,7 +80,7 @@ pub struct Settings {
|
|
|
/// Time between peer discovery attempts
|
|
|
pub outbound_peer_discovery_attempt_time: u64,
|
|
|
/// P2P datastore path
|
|
|
- pub datastore: Option<String>,
|
|
|
+ pub p2p_datastore: Option<String>,
|
|
|
/// Hostlist storage path
|
|
|
pub hostlist: Option<String>,
|
|
|
/// Pause interval within greylist refinery process
|
|
|
@@ -128,7 +128,7 @@ impl Default for Settings {
|
|
|
localnet: false,
|
|
|
outbound_peer_discovery_cooloff_time: 30,
|
|
|
outbound_peer_discovery_attempt_time: 5,
|
|
|
- datastore: None,
|
|
|
+ p2p_datastore: None,
|
|
|
hostlist: None,
|
|
|
greylist_refinery_interval: 15,
|
|
|
white_connect_percent: 70,
|
|
|
@@ -223,7 +223,7 @@ pub struct SettingsOpt {
|
|
|
/// P2P datastore path
|
|
|
#[serde(default)]
|
|
|
#[structopt(long)]
|
|
|
- pub datastore: Option<String>,
|
|
|
+ pub p2p_datastore: Option<String>,
|
|
|
|
|
|
/// Hosts .tsv file to use
|
|
|
#[serde(default)]
|
|
|
@@ -298,7 +298,7 @@ impl From<SettingsOpt> for Settings {
|
|
|
outbound_peer_discovery_attempt_time: opt
|
|
|
.outbound_peer_discovery_attempt_time
|
|
|
.unwrap_or(def.outbound_peer_discovery_attempt_time),
|
|
|
- datastore: opt.datastore,
|
|
|
+ p2p_datastore: opt.p2p_datastore,
|
|
|
hostlist: opt.hostlist,
|
|
|
greylist_refinery_interval: opt
|
|
|
.greylist_refinery_interval
|