Skip to content

Commit fc9307f

Browse files
Merge pull request #17 from shutter-network/release/keyper/v1.3.9
bumped keyper version to v1.3.9
2 parents 4af53bb + 5d3942d commit fc9307f

File tree

5 files changed

+23
-16
lines changed

5 files changed

+23
-16
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.1",
13+
"version": "v0.1.0",
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,16 +12,16 @@ services:
1212
build:
1313
context: shutter
1414
args:
15-
UPSTREAM_VERSION: v1.3.7
15+
UPSTREAM_VERSION: v1.3.9
1616
KEYPER_CONFIG_DIR: /keyper/config
1717
SHUTTER_CHAIN_DIR: /chain
18-
STAKER_SCRIPTS_VERSION: v0.1.1
18+
STAKER_SCRIPTS_VERSION: v0.1.0
1919
restart: unless-stopped
2020
environment:
2121
- SHUTTER_API_NODE_PRIVATEKEY=""
2222
- SHUTTER_PUSH_METRICS_ENABLED=false
2323
- KEYPER_NAME=""
24-
- ETHEREUM_WS=""
24+
- ETHEREUM_WS=
2525
- SHUTTER_PUSH_LOGS_ENABLED=false
2626
- PUSHGATEWAY_USERNAME=""
2727
- PUSHGATEWAY_PASSWORD=""

package_variants/gnosis/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
CHAIN_PORT: 27656
77
KEYPER_PORT: 24003
88
KEYPER_METRICS_PORT: 9100
9-
ASSETS_VERSION: shutter-api-gnosis-1000-v0.0.0
9+
ASSETS_VERSION: shutter-api-gnosis-1000-v0.0.1
1010
ports:
1111
- "24003:24003"
1212
- "27656:27656"
@@ -17,4 +17,4 @@ services:
1717
build:
1818
args:
1919
NETWORK: gnosis
20-
ASSETS_VERSION: shutter-api-gnosis-1000-v0.0.0
20+
ASSETS_VERSION: shutter-api-gnosis-1000-v0.0.1

shutter/go-shutter-settings/settings/keyper.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ type KeyperConfig struct {
1212
BeaconAPIURL string `env:"SHUTTER_BEACONAPIURL"`
1313
MaxNumKeysPerMessage int `env:"_ASSETS_MAX_NUM_KEYS_PER_MESSAGE"`
1414
Chain struct {
15-
EncryptedGasLimit int `env:"_ASSETS_ENCRYPTED_GAS_LIMIT"`
16-
MaxTxPointerAge int `env:"_ASSETS_MAX_TX_POINTER_AGE"`
17-
GenesisSlotTimestamp int `env:"_ASSETS_GENESIS_SLOT_TIMESTAMP"`
18-
SyncStartBlockNumber int `env:"_ASSETS_SYNC_START_BLOCK_NUMBER"`
19-
Node struct {
15+
EncryptedGasLimit int `env:"_ASSETS_ENCRYPTED_GAS_LIMIT"`
16+
MaxTxPointerAge int `env:"_ASSETS_MAX_TX_POINTER_AGE"`
17+
GenesisSlotTimestamp int `env:"_ASSETS_GENESIS_SLOT_TIMESTAMP"`
18+
SyncStartBlockNumber int `env:"_ASSETS_SYNC_START_BLOCK_NUMBER"`
19+
SyncMonitorCheckInterval int `env:"_ASSETS_SYNC_MONITOR_CHECK_INTERVAL"`
20+
Node struct {
2021
PrivateKey string `env:"SHUTTER_API_NODE_PRIVATEKEY"`
2122
ContractsURL string `env:"SHUTTER_GNOSIS_NODE_CONTRACTSURL"` //Unused
2223
DeploymentDir string `env:"SHUTTER_DEPLOYMENT_DIR"` // Unused

shutter/scripts/configure_keyper.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ 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 staker-scripts@v0.1.1 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})}
1720
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
1821
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;
22+
export SHUTTER_NETWORK_NODE_ETHEREUMURL=ws://execution.${NETWORK}.dncore.dappnode:8545
23+
RESULT=$(wscat -c "$SHUTTER_NETWORK_NODE_ETHEREUMURL" -x '{"jsonrpc": "2.0", "method": "eth_syncing", "params": [], "id": 1}')
24+
if [[ $RESULT =~ '"id":1' ]]; then return 0; else
25+
echo "Could not find DAppNode RPC/WS url for this package!"
26+
echo "Please configure 'ETHEREUM_WS' to point to an applicable websocket RPC service."
27+
exit 1
28+
fi
2229
fi
2330
}
2431

@@ -33,9 +40,8 @@ fi
3340

3441
export SHUTTER_P2P_ADVERTISEADDRESSES="[\"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/tcp/${KEYPER_PORT}\", \"/ip4/${_DAPPNODE_GLOBAL_PUBLIC_IP}/udp/${KEYPER_PORT}/quic-v1\"]"
3542

36-
export SHUTTER_NETWORK_NODE_ETHEREUMURL=${ETHEREUM_WS:-$(get_execution_ws_url_from_global_env "$NETWORK" "$SUPPORTED_NETWORKS")}
37-
echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}"
3843
test_ethereum_url
44+
echo "[DEBUG | configure] SHUTTER_NETWORK_NODE_ETHEREUMURL is ${SHUTTER_NETWORK_NODE_ETHEREUMURL}"
3945

4046
export VALIDATOR_PUBLIC_KEY=$(cat "${SHUTTER_CHAIN_DIR}/config/priv_validator_pubkey.hex")
4147
export SHUTTER_METRICS_ENABLED=${SHUTTER_PUSH_METRICS_ENABLED}

0 commit comments

Comments
 (0)