peers_allow/peers_deny in grin.toml (#665)

* first pass at allow/deny lists for hard-coded peers (not just seeds)

* commit

* add peers_allow and peers_deny examples and comments to grin.toml

* fix build issue with simulnet tests

* fix p2p tests
This commit is contained in:
Antioch Peverell
2018-01-30 16:44:13 -05:00
committed by GitHub
parent 94bba20488
commit 5fd47fb875
12 changed files with 102 additions and 29 deletions
+1 -1
View File
@@ -320,7 +320,7 @@ fn server_command(server_args: &ArgMatches, global_config: GlobalConfig) {
let mut server_config = global_config.members.unwrap().server;
if let Some(port) = server_args.value_of("port") {
server_config.p2p_config.as_mut().unwrap().port = port.parse().unwrap();
server_config.p2p_config.port = port.parse().unwrap();
}
if let Some(api_port) = server_args.value_of("api_port") {