Skip to content

Commit

Permalink
Teku waits for web3signer, to work around a Teku bug (#1482)
Browse files Browse the repository at this point in the history
* Teku waits for web3signer, to work around a Teku bug

* Make Teku VC wait as well
  • Loading branch information
yorickdowne authored Aug 15, 2023
1 parent e33cfae commit 610f026
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -2449,6 +2449,10 @@ version() {
docompose exec execution erigon --version
echo
;;&
*web3signer.yml* )
docompose exec web3signer /opt/web3signer/bin/web3signer --version
echo
;;&
*mev-boost.yml* )
docompose exec mev-boost /app/mev-boost -version
echo
Expand Down
9 changes: 9 additions & 0 deletions teku/docker-entrypoint-vc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,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 @@ -84,6 +84,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 610f026

Please sign in to comment.