From 3882b1958d8985dfc9c811972d6011027ef12a00 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Thu, 8 Aug 2019 20:13:48 +0200 Subject: [PATCH] ibdBehindTor also for litecoin --- home.admin/50syncHDD.sh | 35 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/home.admin/50syncHDD.sh b/home.admin/50syncHDD.sh index e3860fc..02d46d7 100755 --- a/home.admin/50syncHDD.sh +++ b/home.admin/50syncHDD.sh @@ -29,35 +29,26 @@ if [ "$network" = "bitcoin" ]; then 255) exit 1;; esac fi +fi - # ask if really sync behind TOR - if [ "${runBehindTor}" = "on" ]; then - whiptail --title ' Sync Blockchain from behind TOR? ' --yes-button='Public-Sync' --no-button='TOR-Sync' --yesno "You decided to run your node behind TOR and validate the blockchain with your RaspiBlitz - thats good. But downloading the complete blockchain thru TOR can add some extra time (maybe a day) to the process and adds a heavy load on the TOR network.\n +# ask if really sync behind TOR +if [ "${runBehindTor}" = "on" ]; then + whiptail --title ' Sync Blockchain from behind TOR? ' --yes-button='Public-Sync' --no-button='TOR-Sync' --yesno "You decided to run your node behind TOR and validate the blockchain with your RaspiBlitz - thats good. But downloading the complete blockchain thru TOR can add some extra time (maybe a day) to the process and adds a heavy load on the TOR network.\n Your RaspiBlitz can just run the initial blockchain download with your public IP (Public-Sync) but keep your Lighting node safe behind TOR. It would speed up the self-validation while not revealing your Lightning node identity. But for most privacy choose (TOR-Sync). " 15 76 - if [ $? -eq 0 ]; then - # set flag to not run bitcoin behind TOR during IDB - echo "ibdBehindTor=off" >> /home/admin/raspiblitz.info - fi + if [ $? -eq 0 ]; then + # set flag to not run bitcoin behind TOR during IDB + echo "ibdBehindTor=off" >> /home/admin/raspiblitz.info fi +fi - clear - if [ ${raspberryPi} -lt 4 ]; then - echo "********************************" - echo "This is madness. This is Sparta!" - echo "********************************" - echo "" - sleep 3 - else - echo "**********************************" - echo "Dont Trust, verify - starting sync" - echo "**********************************" - echo "" - sleep 3 - fi +echo "**********************************" +echo "Dont Trust, verify - starting sync" +echo "**********************************" +echo "" +sleep 3 -fi echo "*** Optimizing RAM for Sync ***"