don't use --networkid flag, it causes issues

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2020-10-21 12:42:12 +02:00
parent a7effd42f2
commit cc19c54471
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 4 additions and 12 deletions

View File

@ -74,17 +74,8 @@ geth_lov_level_names:
geth_log_level_name: 'info' geth_log_level_name: 'info'
geth_log_level_id: '{{ geth_lov_level_names[geth_log_level_name | lower] | mandatory }}' geth_log_level_id: '{{ geth_lov_level_names[geth_log_level_name | lower] | mandatory }}'
# Mapping of network names to IDs for --networkid flag # Available: mainnet, goerli, rinkeby, yolov1, ropsten
geth_network_ids:
frontier: 1
mainnet: 1
ropsten: 3
testnet: 3
rinkeby: 4
goerli: 5
# Available: frontier/mainnet, ropsten/testnet, rinkeby, goerli
geth_network_name: 'mainnet' geth_network_name: 'mainnet'
geth_network_id: '{{ geth_network_ids[geth_network_name] }}'
# Port to listen on # Port to listen on
geth_port: 30303 geth_port: 30303

View File

@ -19,9 +19,10 @@
labels: labels:
# These are just for documentation # These are just for documentation
org.ethereum.geth.network_name: '{{ geth_network_name }}' org.ethereum.geth.network_name: '{{ geth_network_name }}'
org.ethereum.geth.network_id: '{{ geth_network_id }}'
command: | command: |
--networkid={{ geth_network_id }} {% if geth_network_name != "mainnet" %}
--{{ geth_network_name }}
{% endif %}
{% if geth_v5disc_enabled %} {% if geth_v5disc_enabled %}
--v5disc --v5disc
{% endif %} {% endif %}