From 97be1bf93e54a7fda6936c5bcffd04e734f6becc Mon Sep 17 00:00:00 2001 From: Gary Yu Date: Wed, 12 Sep 2018 11:30:24 +0800 Subject: [PATCH] Fix wrong location of p2p config comments (#1511) * remove 'WebStatic' from seeding_type --- config/src/comments.rs | 40 +++++++++++++++++----------------------- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/config/src/comments.rs b/config/src/comments.rs index d8f949d83..9abb9387b 100644 --- a/config/src/comments.rs +++ b/config/src/comments.rs @@ -191,33 +191,11 @@ fn comments() -> HashMap { retval.insert( "seeding_type".to_string(), " -#How to seed this server, can be None, List, WebStatic or DNSSeed #If the seeding type is List, the list of peers to connect to can #be specified as follows: #seeds = [\"192.168.0.1:13414\",\"192.168.0.2:13414\"] -" - .to_string(), - ); - retval.insert( - "seeds".to_string(), - " -#If seeding_type = List, the list of peers to connect to. -" - .to_string(), - ); - - retval.insert( - "[server.p2p_config.capabilities]".to_string(), - "#7 = Bit flags for FULL_NODE, this structure needs to be changed -#internally to make it more configurable -" - .to_string(), - ); - - retval.insert( - "[server.pool_config]".to_string(), - "#hardcoded peer lists for allow/deny +#hardcoded peer lists for allow/deny #will *only* connect to peers in allow list #peers_allow = [\"192.168.0.1:13414\", \"192.168.0.2:13414\"] #will *never* connect to peers in deny list @@ -235,6 +213,22 @@ fn comments() -> HashMap { #until we get to at least this number #peer_min_preferred_count = 8 +#How to seed this server, can be None, List or DNSSeed +" + .to_string(), + ); + + retval.insert( + "[server.p2p_config.capabilities]".to_string(), + "#7 = Bit flags for FULL_NODE, this structure needs to be changed +#internally to make it more configurable +" + .to_string(), + ); + + retval.insert( + "[server.pool_config]".to_string(), + " ######################################### ### MEMPOOL CONFIGURATION ### #########################################