Skip to content

Commit

Permalink
Teku waits for web3signer, to work around a Teku bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 15, 2023
1 parent e33cfae commit 0f727af
Show file tree
Hide file tree
Showing 2 changed files with 13 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.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 0f727af

Please sign in to comment.