Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

The script should make sure that Geth is started, or report any error otherwise #220

Closed
jesus-alastria opened this issue May 29, 2018 · 0 comments

Comments

@jesus-alastria
Copy link
Contributor

echo "[*] Starting quorum node"
if [[ "$NODE_TYPE" == "general" ]]; then
nohup env PRIVATE_CONFIG=~/alastria/data/constellation/constellation.conf geth --datadir ~/alastria/data $GLOBAL_ARGS 2>> ~/alastria/logs/quorum_"${_TIME}".log &
else
if [[ "$NODE_TYPE" == "validator" ]]; then
if [[ "$CURRENT_HOST_IP" == "52.56.69.220" ]]; then
nohup geth --datadir ~/alastria/data $GLOBAL_ARGS --mine --minerthreads 1 --unlock 0 --password ~/alastria/data/passwords.txt 2>> ~/alastria/logs/quorum_"${_TIME}".log &
else
nohup geth --datadir ~/alastria/data $GLOBAL_ARGS --mine --minerthreads 1 2>> ~/alastria/logs/quorum_"${_TIME}".log &
fi
fi
fi

The script does not check that Geth is actually started, like it does with check_constellation_isStarted().
It should wait for some time until it is started, or report the exact error otherwise.
See #217

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants