mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 04:37:19 +02:00
updated get blockchian options
This commit is contained in:
@@ -196,27 +196,32 @@ if [ ${isMounted} -eq 1 ]; then
|
|||||||
if [ ${#raspberryPi} -eq 0 ]; then
|
if [ ${#raspberryPi} -eq 0 ]; then
|
||||||
raspberryPi=0
|
raspberryPi=0
|
||||||
fi
|
fi
|
||||||
syncComment="ULTRA SLOW"
|
|
||||||
if [ ${raspberryPi} -gt 3 ]; then
|
|
||||||
syncComment="BEST+SLOW"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Bitcoin
|
# Bitcoin on older/weak RaspberryPi3
|
||||||
if [ ${network} = "bitcoin" ]; then
|
if [ ${network} = "bitcoin" ] && [ ${raspberryPi} -gt 3 ]; then
|
||||||
echo "Bitcoin Options"
|
echo "Bitcoin-RP3 Options"
|
||||||
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title "Getting the Blockchain" \
|
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 \
|
--menu "You need a copy of the Bitcoin Blockchain - choose method:" 13 75 5 \
|
||||||
T "TORRENT --> MAINNET + TESTNET thru Torrent (DEFAULT)" \
|
T "TORRENT --> Download thru Torrent (trusted DEFAULT ±1day)" \
|
||||||
C "COPY --> BLOCKCHAINDATA from another node with SCP" \
|
C "COPY --> Copy from laptop/node (over LAN ±6hours)" \
|
||||||
N "CLONE --> BLOCKCHAINDATA from 2nd HDD (extra cable)"\
|
N "CLONE --> Clone from 2nd HDD (extra Power needed ±6hours)"\
|
||||||
S "SYNC --> MAINNET thru Bitcoin Network (${syncComment})" 2>&1 >/dev/tty)
|
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
|
# Litecoin
|
||||||
elif [ ${network} = "litecoin" ]; then
|
elif [ ${network} = "litecoin" ]; then
|
||||||
echo "Litecoin Options"
|
echo "Litecoin Options"
|
||||||
menuitem=$(dialog --clear --beep --backtitle "RaspiBlitz" --title "Getting the Blockchain" \
|
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 \
|
--menu "You need a copy of the Litecoin Blockchain:" 13 75 4 \
|
||||||
S "SYNC --> MAINNET thru Litecoin Network" 2>&1 >/dev/tty)
|
S "SYNC --> Selfvalidate all Blocks (±1day)" 2>&1 >/dev/tty)
|
||||||
|
|
||||||
# error
|
# error
|
||||||
else
|
else
|
||||||
@@ -242,6 +247,9 @@ if [ ${isMounted} -eq 1 ]; then
|
|||||||
/home/admin/50syncHDD.sh
|
/home/admin/50syncHDD.sh
|
||||||
/home/admin/10setupBlitz.sh
|
/home/admin/10setupBlitz.sh
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
echo "Use 'raspiblitz' command to return to setup ..."
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user