Skip to content

Commit e8e7633

Browse files
authored
Merge pull request #29 from shutter-network/release/[email protected]
Release/[email protected]
2 parents 54651d4 + b492699 commit e8e7633

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ services:
1212
build:
1313
context: shutter
1414
args:
15-
UPSTREAM_VERSION: v1.3.13
15+
UPSTREAM_VERSION: v1.4.0
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=""
@@ -32,7 +32,7 @@ services:
3232
metrics:
3333
build:
3434
context: metrics
35-
restart: on-failure
35+
restart: unless-stopped
3636
environment:
3737
SHUTTER_PUSH_METRICS_ENABLED: true
3838
KEYPER_NAME: ""

shutter/scripts/configure_keyper.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ NODE_PATH=$NODE_HOME/lib/node_modules
1414
PATH=$NODE_HOME/bin:$PATH
1515

1616
function test_ethereum_url() {
17-
# 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.
18-
# 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})}
17+
if [ -z "$ETHEREUM_WS" ]; then
18+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=$(get_execution_ws_url_from_global_env ${NETWORK})
19+
else
20+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=$ETHEREUM_WS
21+
fi
2022
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
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:8545 # fallback to old URL
2325
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
2426
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
2527
echo "Could not find DAppNode RPC/WS url for this package!"

0 commit comments

Comments
 (0)