Devices won't check for new QS data

This commit is contained in:
Taylor Helsper 2020-02-12 00:02:35 -06:00
parent 884a2f426a
commit 2e0ccc0d5a

View File

@ -4,25 +4,13 @@ source /usr/share/mynode/mynode_config.sh
echo "Waiting until QuickSync is complete..."
while [ ! -f "$QUICKSYNC_COMPLETE_FILE" ]; do
sleep 1m
sleep 1h
done
if [ ! -f $UPLOADER_FILE ]; then
echo "Quicksync Complete! Waiting until Bitcoin Sync is complete..."
while [ ! -f "$BITCOIN_SYNCED_FILE" ]; do
sleep 1m
done
echo "Bitcoin Sync Complete! Checking if there is a new torrent available..."
sleep 1d
fi
while true; do
# Wait a while... we don't want everyone starting on a new torrent at once
if [ -f $UPLOADER_FILE ]; then
echo "Marked as uploader, checking for new torrent in 1 day..."
sleep 1d
else
sleep 10d
fi
echo "Marked as uploader, checking for new torrent..."
# Download current torrent
rm -rf /tmp/blockchain_temp.torrent
@ -43,6 +31,9 @@ while true; do
else
echo "Torrent download failed...."
fi
fi
sleep 1d
done
# Should never exit