Skip to content

Commit 1209046

Browse files
authored
Update geth init (#134)
following: ethereum/go-ethereum#32844 --------- Signed-off-by: Barnabas Busa <busa.barnabas@gmail.com>
1 parent a65adf6 commit 1209046

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

ansible/inventories/devnet-0/group_vars/bootnode.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,14 @@ geth_container_env:
4343
VIRTUAL_PORT: "{{ ethereum_node_el_ports_http_rpc | string }}"
4444
LETSENCRYPT_HOST: "{{ ethereum_node_rcp_hostname }}"
4545
geth_container_command_extra_args:
46+
- --override.genesis={{ eth_testnet_config_dir }}/genesis.json
4647
- --http.api=eth,net,web3,debug,admin
4748
- --http.vhosts=*
4849
- --networkid={{ ethereum_network_id }}
4950
- --syncmode=full
5051
- --gcmode=archive
5152
- --state.scheme=hash
52-
geth_init_custom_network: true
53-
geth_init_custom_network_genesis_file: "{{ eth_testnet_config_dir }}/genesis.json"
54-
geth_container_pull: true
5553

56-
geth_init_custom_network_container_command:
57-
- --datadir=/data
58-
- init
59-
- --state.scheme=hash
60-
- /genesis.json
6154

6255
# role: ethpandaops.general.prometheus
6356
prometheus_remote_push_url: https://victoriametrics.ethdevops.io/insert/0/prometheus/api/v1/write

ansible/inventories/devnet-0/group_vars/geth.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ geth_container_env:
1515
VIRTUAL_PORT: "{{ ethereum_node_el_ports_http_rpc | string }}"
1616
LETSENCRYPT_HOST: "{{ ethereum_node_rcp_hostname }}"
1717
geth_container_command_extra_args:
18+
- --override.genesis={{ eth_testnet_config_dir }}/genesis.json
1819
- --http.api=eth,net,web3,debug,admin,txpool
1920
- --http.vhosts=*
2021
- --networkid={{ ethereum_network_id }}
2122
- --syncmode=full
2223
- --bootnodes={{ ethereum_el_bootnodes | join(',') }}
23-
geth_init_custom_network: true
24-
geth_init_custom_network_genesis_file: "{{ eth_testnet_config_dir }}/genesis.json"
25-
geth_init_custom_network_container_command:
26-
- --datadir=/data
27-
- init
28-
- /genesis.json
24+
2925
geth_container_pull: true
3026

3127
prometheus_config: |

0 commit comments

Comments
 (0)