peerset: fix reserved nodes (#3706)

* peerset: fix handling of reserved only peering mode

* core: add cli parameter to enable reserved nodes only

* peerset: fix tests

* peerset: add test for priority only mode

* core: fix reserved only cli flag description

* peerset: extend docs on set_priority_only
This commit is contained in:
André Silva
2019-09-28 18:04:46 +01:00
committed by Gavin Wood
parent 3242d7f2b6
commit c555b9bf88
4 changed files with 103 additions and 12 deletions
+7
View File
@@ -92,6 +92,13 @@ pub struct NetworkConfigurationParams {
#[structopt(long = "reserved-nodes", value_name = "URL")]
pub reserved_nodes: Vec<String>,
/// Whether to only allow connections to/from reserved nodes.
///
/// If you are a validator your node might still connect to other validator
/// nodes regardless of whether they are defined as reserved nodes.
#[structopt(long = "reserved-only")]
pub reserved_only: bool,
/// Listen on this multiaddress.
#[structopt(long = "listen-addr", value_name = "LISTEN_ADDR")]
pub listen_addr: Vec<String>,