add whisper and miner settings

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-07 14:41:27 +02:00
parent 0beccbceef
commit 3dc350658d
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 22 additions and 1 deletions

View File

@ -33,7 +33,9 @@ geth_aliases:
# Sync mode: full, fast, light
geth_sync_mode: 'light'
# Maximum number of untrusted peers that can connect
geth_max_peers: 25
geth_max_peers: 50
# Maximum pending connection attempts
geth_max_pend_peers: 30
# Maximum percentage of time allowed for serving LES requests (0-90)
geth_light_serv: 90
# Peer discovery protocol
@ -42,6 +44,15 @@ geth_v5disc_enabled: true
geth_trusted_peers: []
geth_trusted_peers_file: '{{ geth_data_path }}/trusted-nodes.json'
# Mining settings
geth_miner_enabled: false
geth_miner_threads: '{{ ansible_processor_vcpus }}'
geth_miner_account: '{{ geth_account_addr }}'
# Whisper protocol
geth_whisper_enabled: false
geth_whisper_pow: 0.2
# logging
geth_lov_level_names:
silent: 0

View File

@ -31,9 +31,19 @@
{% if geth_sync_mode != 'light' %}
--lightserv={{ geth_light_serv }}
{% endif %}
{% if geth_miner_enabled %}
--mine
--miner.threads="{{ geth_miner_threads }}"
--miner.etherbase="{{ geth_miner_account | mandatory }}"
{% endif %}
{% if geth_whisper_enabled %}
--shh
--shh.pow={{ geth_whisper_pow }}
{% endif %}
--verbosity={{ geth_log_level_id }}
--cache={{ geth_cache }}
--maxpeers={{ geth_max_peers }}
--maxpendpeers="{{ geth_max_pend_peers }}"
--port={{ geth_port }}
--nat=extip:{{ geth_public_addr }}
--unlock={{ geth_account_addr }}