updated get blockchian options

This commit is contained in:
rootzoll 2020-02-18 16:09:52 +01:00
parent 1778e530db
commit 81b9f84fd4

View File

@ -196,27 +196,32 @@ if [ ${isMounted} -eq 1 ]; then
if [ ${#raspberryPi} -eq 0 ]; then
raspberryPi=0
fi
syncComment="ULTRA SLOW"
if [ ${raspberryPi} -gt 3 ]; then
syncComment="BEST+SLOW"
fi
#Bitcoin
if [ ${network} = "bitcoin" ]; then
echo "Bitcoin Options"
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title "Getting the Blockchain" \
--menu "You need a copy of the Bitcoin Blockchain - you have 4 options:" 13 75 5 \
T "TORRENT --> MAINNET + TESTNET thru Torrent (DEFAULT)" \
C "COPY --> BLOCKCHAINDATA from another node with SCP" \
N "CLONE --> BLOCKCHAINDATA from 2nd HDD (extra cable)"\
S "SYNC --> MAINNET thru Bitcoin Network (${syncComment})" 2>&1 >/dev/tty)
# Bitcoin on older/weak RaspberryPi3
if [ ${network} = "bitcoin" ] && [ ${raspberryPi} -gt 3 ]; then
echo "Bitcoin-RP3 Options"
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title " Getting the Blockchain " \
--menu "You need a copy of the Bitcoin Blockchain - choose method:" 13 75 5 \
T "TORRENT --> Download thru Torrent (trusted DEFAULT ±1day)" \
C "COPY --> Copy from laptop/node (over LAN ±6hours)" \
N "CLONE --> Clone from 2nd HDD (extra Power needed ±6hours)"\
S "SYNC --> Selfvalidate all Blocks (VERY SLOW ±2month)" 2>&1 >/dev/tty)
# Bitcoin on stronger RaspberryPi4
elif [ ${network} = "bitcoin" ]; then
echo "Bitcoin-RP4 Options"
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title " Getting the Blockchain " \
--menu "You need a copy of the Bitcoin Blockchain - choose method:" 13 75 5 \
S "SYNC --> Selfvalidate all Blocks (DEFAULT ±2days)" \
C "COPY --> Copy from laptop/node (over LAN ±4hours)" \
T "TORRENT --> Download thru Torrent (trusted FALLBACK ±1day)" 2>&1 >/dev/tty)
# Litecoin
elif [ ${network} = "litecoin" ]; then
echo "Litecoin Options"
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title "Getting the Blockchain" \
--menu "You need a copy of the Litecoin Blockchain - you have 2 options:" 13 75 4 \
S "SYNC --> MAINNET thru Litecoin Network" 2>&1 >/dev/tty)
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title " Getting the Blockchain " \
--menu "You need a copy of the Litecoin Blockchain:" 13 75 4 \
S "SYNC --> Selfvalidate all Blocks (±1day)" 2>&1 >/dev/tty)
# error
else
@ -242,6 +247,9 @@ if [ ${isMounted} -eq 1 ]; then
/home/admin/50syncHDD.sh
/home/admin/10setupBlitz.sh
;;
*)
echo "Use 'raspiblitz' command to return to setup ..."
;;
esac
exit 1