From 1f149eed6d4efae8fa563f57a7361674767a45c3 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sun, 22 Sep 2019 16:46:55 -0500 Subject: [PATCH] Save QuickSync tar extract output and remove rate limit --- rootfs/standard/usr/bin/mynode_quicksync_complete.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_quicksync_complete.sh b/rootfs/standard/usr/bin/mynode_quicksync_complete.sh index 285ae7f8..e991bd1d 100755 --- a/rootfs/standard/usr/bin/mynode_quicksync_complete.sh +++ b/rootfs/standard/usr/bin/mynode_quicksync_complete.sh @@ -17,8 +17,11 @@ sync echo "quicksync_copy" > $MYNODE_DIR/.mynode_status rm -rf $MYNODE_DIR/bitcoin/blocks/ rm -rf $MYNODE_DIR/bitcoin/chainstate/ -#tar -xvf $QUICKSYNC_DIR/blockchain*.tar.gz -C $MYNODE_DIR/bitcoin/ --dereference -pv -L 10m $QUICKSYNC_DIR/blockchain*.tar.gz | tar xzvf - -C $MYNODE_DIR/bitcoin/ --dereference +tar -xvf $QUICKSYNC_DIR/blockchain*.tar.gz -C $MYNODE_DIR/bitcoin/ --dereference 2>&1 > /tmp/tar_log_$(date +%s) +#pv -L 10m $QUICKSYNC_DIR/blockchain*.tar.gz | tar xzvf - -C $MYNODE_DIR/bitcoin/ --dereference + +sync +sleep 30s # Mark quicksync complete and give BTC a few minutes to startup with its new data touch $QUICKSYNC_DIR/.quicksync_complete