mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34:00 +00:00
Tweak QS Settings
This commit is contained in:
parent
1d2398fad5
commit
88f32762f1
|
@ -44,10 +44,12 @@ while true; do
|
|||
echo "Marked as uploader, unlimited upload, unlimited download"
|
||||
transmission-remote -U
|
||||
transmission-remote -D
|
||||
transmission-remote -t 1 --peers 5
|
||||
elif [ ! -f "/mnt/hdd/mynode/quicksync/.quicksync_complete" ]; then
|
||||
echo "QuickSync not complete, limited upload, unlimited download"
|
||||
transmission-remote -u $UPLOAD_RATE
|
||||
transmission-remote -D
|
||||
transmission-remote -t 1 --peers 10
|
||||
elif [ ! -f "/mnt/hdd/mynode/.mynode_bitcoind_synced" ]; then
|
||||
echo "Bitcoin not synced, stopping upload, stopping download"
|
||||
transmission-remote -u 0
|
||||
|
@ -57,9 +59,10 @@ while true; do
|
|||
transmission-remote -u $UPLOAD_RATE
|
||||
transmission-remote -d $DOWNLOAD_RATE
|
||||
else
|
||||
echo "Setting upload rate to unlimited"
|
||||
transmission-remote -U
|
||||
transmission-remote -D
|
||||
echo "Setting upload rate for stable state"
|
||||
transmission-remote -u $UPLOAD_RATE
|
||||
transmission-remote -d $DOWNLOAD_RATE
|
||||
transmission-remote -t 1 --peers 5
|
||||
fi
|
||||
sleep 10m
|
||||
done
|
||||
|
|
|
@ -68,8 +68,8 @@ fi
|
|||
if [ ! -f $QUICKSYNC_DIR/blockchain.torrent ]; then
|
||||
cp $QUICKSYNC_DIR/blockchain_temp.torrent $QUICKSYNC_DIR/blockchain.torrent
|
||||
else
|
||||
if [ $IS_RASPI3 -eq 1 ] && [ ! -f $UPLOADER_FILE ]; then
|
||||
# Don't help with uploads during normal operation.... too slow
|
||||
if [ ! -f $UPLOADER_FILE ]; then
|
||||
# Don't update torrent for normal operations.... too slow
|
||||
sleep 1s
|
||||
else
|
||||
# Run commands as long as torrents are different (last command updates torrent file)
|
||||
|
|
Loading…
Reference in New Issue
Block a user