Skip to content

Commit a5c6b56

Browse files
fix: execution client rpc port can be 8546/8545
1 parent ea086a2 commit a5c6b56

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

shutter/scripts/configure_keyper.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ PATH=$NODE_HOME/bin:$PATH
1616
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
19-
echo "Could not find DAppNode RPC/WS url for this package!"
20-
echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service."
21-
exit 1;
19+
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}')
21+
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
22+
echo "Could not find DAppNode RPC/WS url for this package!"
23+
echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service."
24+
exit 1
25+
fi
2226
fi
2327
}
2428

@@ -34,7 +38,7 @@ fi
3438
export SHUTTER_P2P_ADVERTISEADDRESSES="[\"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/tcp/${KEYPER_PORT}\", \"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/udp/${KEYPER_PORT}/quic-v1\"]"
3539

3640
//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.
37-
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-ws://execution.${SUPPORTED_NETWORKS}.dncore.dappnode:8545}
41+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-ws://execution.${SUPPORTED_NETWORKS}.dncore.dappnode:8546}
3842
echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}"
3943
test_ethereum_url
4044

0 commit comments

Comments
 (0)