add geth_discovery_enabled flag
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
c3df0ac68c
commit
0eed3daea9
|
@ -50,6 +50,7 @@ geth_max_pend_peers: 30
|
||||||
# Maximum percentage of time allowed for serving LES requests (0-90)
|
# Maximum percentage of time allowed for serving LES requests (0-90)
|
||||||
geth_light_serv: 90
|
geth_light_serv: 90
|
||||||
# Peer discovery protocol
|
# Peer discovery protocol
|
||||||
|
geth_discovery_enabled: true
|
||||||
geth_v5disc_enabled: true
|
geth_v5disc_enabled: true
|
||||||
# List of trusted peers to connect to
|
# List of trusted peers to connect to
|
||||||
geth_trusted_peers: []
|
geth_trusted_peers: []
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
{% if geth_network_name != "mainnet" %}
|
{% if geth_network_name != "mainnet" %}
|
||||||
--{{ geth_network_name }}
|
--{{ geth_network_name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not geth_discovery_enabled %}
|
||||||
|
--nodiscover
|
||||||
|
{% endif %}
|
||||||
{% if geth_v5disc_enabled %}
|
{% if geth_v5disc_enabled %}
|
||||||
--v5disc
|
--v5disc
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: Create a list of trusted peers
|
- name: Create a list of trusted peers
|
||||||
copy:
|
copy:
|
||||||
content: '{{ geth_trusted_peers | to_nice_json }}'
|
content: '{{ geth_trusted_peers | to_nice_json }}'
|
||||||
path: '{{ geth_trusted_peers_file }}'
|
dest: '{{ geth_trusted_peers_file }}'
|
||||||
owner: dockremap
|
owner: dockremap
|
||||||
group: docker
|
group: docker
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
Loading…
Reference in New Issue