Skip to content

Commit ad7ce2c

Browse files
feat: update staker scripts to v0.1.2
1 parent 0c0ea78 commit ad7ce2c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

dappnode_package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"upstream": [
1111
{
1212
"repo": "dappnode/staker-package-scripts",
13-
"version": "v0.1.0",
13+
"version": "v0.1.2",
1414
"arg": "STAKER_SCRIPTS_VERSION"
1515
}
1616
],

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
UPSTREAM_VERSION: v1.3.12
1616
KEYPER_CONFIG_DIR: /keyper/config
1717
SHUTTER_CHAIN_DIR: /chain
18-
STAKER_SCRIPTS_VERSION: v0.1.0
18+
STAKER_SCRIPTS_VERSION: v0.1.2
1919
restart: unless-stopped
2020
environment:
2121
- SHUTTER_API_NODE_PRIVATEKEY=""

shutter/scripts/configure_keyper.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,14 @@ PATH=$NODE_HOME/bin:$PATH
1616
function test_ethereum_url() {
1717
# FIXME: This is a workaround for the issue with the staker-scripts@v0.1.1 not setting get_execution_ws_url_from_global_env correctly in the environment variables.
1818
# Git Issue: https://github.com/dappnode/staker-package-scripts/issues/11
19-
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-$(get_execution_ws_url_from_global_env ${NETWORK} ${SUPPORTED_NETWORKS})}
19+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-$(get_execution_ws_url_from_global_env ${NETWORK})}
20+
echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}"
2021
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
22+
echo "[DEBUG | configure] RESULT is ${RESULT}"
2123
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
22-
export SHUTTER_NETWORK_NODE_ETHEREUMURL=ws://execution.${NETWORK}.dncore.dappnode:8545
24+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=ws://execution.${NETWORK}.dncore.dappnode:8546
2325
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
26+
echo "[DEBUG | configure] RESULT is ${RESULT}"
2427
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
2528
echo "Could not find DAppNode RPC/WS url for this package!"
2629
echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service."

0 commit comments

Comments
 (0)