From 54cc926a3acec60e748fe2a922d750462a0c937b Mon Sep 17 00:00:00 2001 From: rootzoll Date: Fri, 25 Jan 2019 22:06:47 +0100 Subject: [PATCH] updated syncing to mainnet with warning --- home.admin/10setupBlitz.sh | 2 +- home.admin/50syncHDD.sh | 23 ++++++++++++++--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/home.admin/10setupBlitz.sh b/home.admin/10setupBlitz.sh index de651cc4f..0082d66ae 100755 --- a/home.admin/10setupBlitz.sh +++ b/home.admin/10setupBlitz.sh @@ -164,7 +164,7 @@ if [ ${mountOK} -eq 1 ]; then T "TORRENT --> MAINNET + TESTNET thru Torrent (DEFAULT)" \ D "DOWNLOAD --> MAINNET + TESTNET per FTP (FALLBACK)" \ C "COPY --> USE BLOCKCHAINDATA from another computer" \ - S "SYNC --> JUST TESTNET thru Bitoin Network (FALLBACK+SLOW)" 2>&1 >/dev/tty) + S "SYNC --> MAINNET thru Bitoin Network (ULTRA SLOW)" 2>&1 >/dev/tty) # Litecoin elif [ ${network} = "litecoin" ]; then diff --git a/home.admin/50syncHDD.sh b/home.admin/50syncHDD.sh index 0ae966022..a509fdea1 100755 --- a/home.admin/50syncHDD.sh +++ b/home.admin/50syncHDD.sh @@ -5,23 +5,28 @@ source /home/admin/raspiblitz.info 2>/dev/null # only show warning when bitcoin if [ "$network" = "bitcoin" ]; then - msg="" - msg="$msg Syncing is just practical for Bitcoin TESTNET!\n" - msg="$msg TESTNET is OK for learning, testing and development.\n" - msg="$msg MAINNET is where things get real and fun.\n" + msg="The RaspberryPi has very limited CPU power." + msg="$msg To sync & validate the complete blockchain\n" + msg="$msg can take multiple days - even weeks!\n" + msg="$msg Its recommended to use another option.\n" msg="$msg \n" - msg="$msg Syncing MAINNET on a raspberry is NOT practical.\n" - msg="$msg If you want MAINET, go back & try DOWNLOAD.\n" - msg="$msg \n" - msg="$msg Do you really want to work with ONLY TESTNET?" + msg="$msg So do you really want start syncing now?" - dialog --title " WARNING " --yesno "${msg}" 12 57 + dialog --title " WARNING " --yesno "${msg}" 11 57 response=$? case $response in 0) echo "--> OK";; 1) ./10setupBlitz.sh; exit 1;; 255) ./10setupBlitz.sh; exit 1;; esac + + clear + echo "********************************" + echo "This is madness. This is Sparta!" + echo "********************************" + echo "" + sleep 3 + fi echo "*** Activating Blockain Sync ***"