Skip to content

Commit

Permalink
Merge pull request #449 from serokell/krendelhoff/#403-baker-should-w…
Browse files Browse the repository at this point in the history
…ait-node

[#403] Services fail to start
  • Loading branch information
krendelhoff authored May 2, 2022
2 parents 236f1bc + 8a76f7d commit 7dd0d93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/package/scripts/tezos-baker-start
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ launch_baker() {
fi
}

# TODO we should use --keep-alive instead of this loop once
# https://gitlab.com/tezos/tezos/-/issues/2873 is fixed
# Waiting till node start to respond

while ! "$tezos_client" --endpoint "$NODE_RPC_ENDPOINT" rpc list &> /dev/null; do sleep 1; done

if [[ -z "$BAKER_ADDRESS_ALIAS" ]]; then
launch_baker "$@"
else
Expand Down

0 comments on commit 7dd0d93

Please sign in to comment.