Skip to content

Commit

Permalink
Revert "Remove Teku web3signer wait loop (#1504)"
Browse files Browse the repository at this point in the history
This reverts commit 5535b96.
  • Loading branch information
yorickdowne committed Sep 14, 2023
1 parent 1d20d0e commit 200cf2e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions teku/docker-entrypoint-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ fi
# Web3signer URL
if [ "${WEB3SIGNER}" = "true" ]; then
__w3s_url="--validators-external-signer-url http://web3signer:9000 --validators-external-signer-public-keys external-signer"
while true; do
if curl -s -m 5 http://web3signer:9000 &> /dev/null; then
echo "web3signer is up, starting Teku"
break
else
echo "Waiting for web3signer to be reachable..."
sleep 5
fi
done
else
__w3s_url=""
fi
Expand Down
9 changes: 9 additions & 0 deletions teku/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ fi
# Web3signer URL
if [[ "${EMBEDDED_VC}" = "true" && "${WEB3SIGNER}" = "true" ]]; then
__w3s_url="--validators-external-signer-url http://web3signer:9000 --validators-external-signer-public-keys external-signer"
while true; do
if curl -s -m 5 http://web3signer:9000 &> /dev/null; then
echo "web3signer is up, starting Teku"
break
else
echo "Waiting for web3signer to be reachable..."
sleep 5
fi
done
else
__w3s_url=""
fi
Expand Down

0 comments on commit 200cf2e

Please sign in to comment.