add geth_discovery_enabled flag

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-03-24 12:12:49 +01:00
parent c3df0ac68c
commit 0eed3daea9
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,7 @@ geth_max_pend_peers: 30
# Maximum percentage of time allowed for serving LES requests (0-90)
geth_light_serv: 90
# Peer discovery protocol
geth_discovery_enabled: true
geth_v5disc_enabled: true
# List of trusted peers to connect to
geth_trusted_peers: []

View File

@ -24,6 +24,9 @@
{% if geth_network_name != "mainnet" %}
--{{ geth_network_name }}
{% endif %}
{% if not geth_discovery_enabled %}
--nodiscover
{% endif %}
{% if geth_v5disc_enabled %}
--v5disc
{% endif %}

View File

@ -2,7 +2,7 @@
- name: Create a list of trusted peers
copy:
content: '{{ geth_trusted_peers | to_nice_json }}'
path: '{{ geth_trusted_peers_file }}'
dest: '{{ geth_trusted_peers_file }}'
owner: dockremap
group: docker
mode: 0600