-
Notifications
You must be signed in to change notification settings - Fork 0
bumped keyper version to v1.3.9 #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
19f084d
8ca1721
ea086a2
a5c6b56
26ad3cc
1e6c453
70a1a02
6e5de32
8105b62
5d3942d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,9 +16,13 @@ PATH=$NODE_HOME/bin:$PATH | |
| function test_ethereum_url() { | ||
| RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}') | ||
| if [[ $RESULT =~ '"id":1' ]]; then return 0; else | ||
| echo "Could not find DAppNode RPC/WS url for this package!" | ||
| echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service." | ||
| exit 1; | ||
| export SHUTTER_NETWORK_NODE_ETHEREUMURL=ws://execution.${SUPPORTED_NETWORKS}.dncore.dappnode:8545 | ||
|
||
| RESULT=$(wscat -c "" -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}') | ||
| if [[ $RESULT =~ '"id":1' ]]; then return 0; else | ||
| echo "Could not find DAppNode RPC/WS url for this package!" | ||
| echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service." | ||
| exit 1 | ||
| fi | ||
| fi | ||
| } | ||
|
|
||
|
|
@@ -33,7 +37,8 @@ fi | |
|
|
||
| export SHUTTER_P2P_ADVERTISEADDRESSES="[\"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/tcp/${KEYPER_PORT}\", \"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/udp/${KEYPER_PORT}/quic-v1\"]" | ||
|
|
||
| export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-$(get_execution_ws_url_from_global_env "$NETWORK" "$SUPPORTED_NETWORKS")} | ||
| //FIXME: This is a workaround for the issue with the [email protected] not setting get_execution_ws_url_from_global_env correctly in the environment variables. | ||
| export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-ws://execution.${SUPPORTED_NETWORKS}.dncore.dappnode:8546} | ||
|
||
| echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}" | ||
| test_ethereum_url | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUPPORTED_NETWORKSis potentially an array. So this shouldn't apply here.