Merge pull request #185 from ArseniiPetrovich/fixnodetoml

Fix `max_peers` and `min_peers` section in node.toml (Master)
This commit is contained in:
phahulin 2018-12-07 16:39:51 +03:00 committed by GitHub
commit 78ca79effe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -13,6 +13,8 @@ port = 30303
snapshot_peers = 500
discovery = false
allow_ips = "public"
min_peers = 5
max_peers = 10
{% endif %}
[rpc]
@ -46,8 +48,6 @@ pruning = "archive"
pruning_history = 1200
fat_db = "on"
cache_size_db = 12000
min_peers = 5
max_peers = 10
{% endif %}
[misc]

View File

@ -9,9 +9,12 @@ auto_update = "all"
reserved_peers="{{ home }}/bootnodes.txt"
nat="extip:{{ ansible_host }}"
port = 30303
max_peers = 100
{% if validator_archive|default("off") == "on" %}
discovery = false
min_peers = 5
max_peers = 10
{% else %}
max_peers = 100
{% endif %}
[rpc]
@ -45,8 +48,6 @@ pruning = "archive"
pruning_history = 1200
fat_db = "on"
cache_size_db = 12000
min_peers = 5
max_peers = 10
{% endif %}
[misc]