service: use new --el flag instead of --web3-url
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
53dc3b1724
commit
dba21b36df
|
@ -38,8 +38,10 @@ beacon_node_repo_branch: 'stable'
|
|||
beacon_node_network: 'mainnet'
|
||||
# optional setting for debug mode
|
||||
beacon_node_log_level: 'DEBUG'
|
||||
# Infura Web Sockets URLs
|
||||
beacon_node_web3_urls: ['wss://mainnet.infura.io/ws/v3/123qwe123qwe123qwe']
|
||||
# WebSocket or HTTP URLs for execution layet Engine API
|
||||
beacon_node_exec_layer_urls:
|
||||
- 'wss://erigon.internal.example.org:8551'
|
||||
- 'http://geth.internal.example.org:8552'
|
||||
```
|
||||
The order of Web Socket URLs matters. First is the default, the rest are fallbacks.
|
||||
|
||||
|
|
|
@ -86,9 +86,9 @@ beacon_node_consul_service_name: 'beacon-node'
|
|||
beacon_node_consul_service_file_name: '{{ beacon_node_service_name | replace("-", "_") }}'
|
||||
beacon_node_consul_metrics_service_name: '{{ beacon_node_consul_service_name }}-metrics'
|
||||
|
||||
# WebSocket RPC URLs, Goerli for testnets
|
||||
beacon_node_web3_urls: ['wss://goerli.infura.io/ws/v3/6224f3c792cc443fafb64e70a98f871e']
|
||||
#beacon_node_web3_jwt_secret: ~
|
||||
beacon_node_web3_jwt_secret_path: '{{ beacon_node_service_path }}\jwt.hex'
|
||||
# WebSocket or HTTP URLs for execution layet Engine API
|
||||
beacon_node_exec_layer_urls: []
|
||||
#beacon_node_exec_layer_jwt_secret: ~
|
||||
beacon_node_exec_layer_jwt_secret_path: '{{ beacon_node_service_path }}/jwt.hex'
|
||||
|
||||
beacon_node_slashing_db_kind: 'v2'
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
---
|
||||
- name: Verify web3 URLs are provided
|
||||
- name: Verify Exec layer Engine API URLs are provided
|
||||
assert:
|
||||
that: '{{ beacon_node_web3_urls|length > 0 }}'
|
||||
that: '{{ beacon_node_exec_layer_urls|length > 0 }}'
|
||||
quiet: true
|
||||
fail_msg: |
|
||||
Providing Web3 URLs is required to sync with Eth1 chain!
|
||||
Verify that the 'beacon_node_web3_urls' variable is set.
|
||||
Providing Exec layer Engine API URLs is required to sync with Eth1 chain!
|
||||
Verify that the 'beacon_node_exec_layer_urls' variable is set.
|
||||
|
||||
- name: Verify network name
|
||||
assert:
|
||||
|
|
|
@ -37,13 +37,13 @@
|
|||
type: 'allow'
|
||||
|
||||
- name: Create JWT secret file (optional)
|
||||
when: beacon_node_web3_jwt_secret is defined
|
||||
when: beacon_node_exec_layer_jwt_secret is defined
|
||||
copy:
|
||||
dest: '{{ beacon_node_web3_jwt_secret_path }}'
|
||||
content: '{{ beacon_node_web3_jwt_secret }}'
|
||||
dest: '{{ beacon_node_exec_layer_jwt_secret_path }}'
|
||||
content: '{{ beacon_node_exec_layer_jwt_secret }}'
|
||||
|
||||
- name: Fix JWT secret file permissions
|
||||
when: beacon_node_web3_jwt_secret is defined
|
||||
when: beacon_node_exec_layer_jwt_secret is defined
|
||||
win_owner:
|
||||
path: '{{ beacon_node_web3_jwt_secret_path }}'
|
||||
path: '{{ beacon_node_exec_layer_jwt_secret_path }}'
|
||||
user: '{{ beacon_node_service_user_name }}'
|
||||
|
|
|
@ -21,11 +21,11 @@
|
|||
--validators-dir="{{ beacon_node_validators_path }}"
|
||||
--era-dir="{{ beacon_node_era_dir_path }}"
|
||||
--history="{{ beacon_node_history_retention }}"
|
||||
{% for url in beacon_node_web3_urls | mandatory %}
|
||||
--web3-url="{{ url | mandatory }}"
|
||||
{% for url in beacon_node_exec_layer_urls | mandatory %}
|
||||
--el="{{ url | mandatory }}"
|
||||
{% endfor %}
|
||||
{% if beacon_node_web3_jwt_secret is defined %}
|
||||
--jwt-secret="{{ beacon_node_web3_jwt_secret_path | mandatory }}"
|
||||
{% if beacon_node_exec_layer_jwt_secret is defined %}
|
||||
--jwt-secret="{{ beacon_node_exec_layer_jwt_secret_path | mandatory }}"
|
||||
{% endif %}
|
||||
{% if beacon_node_suggested_fee_recipient is defined %}
|
||||
--suggested-fee-recipient={{ beacon_node_suggested_fee_recipient | mandatory }}
|
||||
|
|
Loading…
Reference in New Issue