Skip to content

Commit 355ed8a

Browse files
fix: use NETWORK instead of SUPPORTED_NETWORKS for execution rpc url
1 parent a5c6b56 commit 355ed8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shutter/scripts/configure_keyper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function test_ethereum_url() {
1717
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
1818
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
1919
export SHUTTER_NETWORK_NODE_ETHEREUMURL=ws://execution.${SUPPORTED_NETWORKS}.dncore.dappnode:8545
20-
RESULT=$(wscat -c "" -x '{"jsonrpc": "2.0", "method": "net_version", "params": [], "id": 1}')
20+
RESULT=$(wscat -c "" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
2121
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
2222
echo "Could not find DAppNode RPC/WS url for this package!"
2323
echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service."
@@ -38,7 +38,7 @@ fi
3838
export SHUTTER_P2P_ADVERTISEADDRESSES="[\"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/tcp/${KEYPER_PORT}\", \"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/udp/${KEYPER_PORT}/quic-v1\"]"
3939

4040
//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.
41-
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-ws://execution.${SUPPORTED_NETWORKS}.dncore.dappnode:8546}
41+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-ws://execution.${NETWORK}.dncore.dappnode:8546}
4242
echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}"
4343
test_ethereum_url
4444

0 commit comments

Comments
 (0)