From 88f32762f188ffd7c3a507667a14f0cabb9005ae Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sat, 29 Feb 2020 12:07:20 -0600 Subject: [PATCH] Tweak QS Settings --- rootfs/standard/usr/bin/mynode_bandwidth.sh | 9 ++++++--- rootfs/standard/usr/bin/mynode_quicksync.sh | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_bandwidth.sh b/rootfs/standard/usr/bin/mynode_bandwidth.sh index 506a6cd1..70776aed 100755 --- a/rootfs/standard/usr/bin/mynode_bandwidth.sh +++ b/rootfs/standard/usr/bin/mynode_bandwidth.sh @@ -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 diff --git a/rootfs/standard/usr/bin/mynode_quicksync.sh b/rootfs/standard/usr/bin/mynode_quicksync.sh index 1bee43a3..083bc20b 100755 --- a/rootfs/standard/usr/bin/mynode_quicksync.sh +++ b/rootfs/standard/usr/bin/mynode_quicksync.sh @@ -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)