Commit 34898603 authored by TonyFord's avatar TonyFord
Browse files

wait until blockchain is up-to-date

parent c23c555c
......@@ -17,11 +17,20 @@ docker-compose up -d faircoin
docker-compose exec -T faircoin mv -f ./scripts/fairchains.conf .faircoin2/
docker-compose exec -T faircoin mv -f ./scripts/faircoin.conf .faircoin2/
docker-compose exec -T faircoin ./faircoind -disablewallet -daemon
# docker-compose stop faircoin
# start faircoin service
# export AUTOSTART=1
# docker-compose up -d faircoin
# export AUTOSTART=0
sleep 180
# wait until blockchain is up-to-date
last=-1
new=0
while [ $new != $last ]
do
last=$new
echo $last
echo "wait.."
sleep 20
new=`docker-compose exec -T faircoin ./faircoin-cli getblockcount`
done
# start explorer service
cat ${CCE_CONF} | sed -e s/MYSQL_USER/${MYSQL_USER}/g -e s/MYSQL_PASSWORD/${MYSQL_PASSWORD}/g > ./services/explorer/cce.conf
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment