#292 safeguarding against network info loss

This commit is contained in:
rootzoll
2019-01-25 21:56:24 +01:00
parent 47dafae8da
commit ed828455d8
7 changed files with 7 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
# load raspiblitz config data (with backup from old config)
source /mnt/hdd/raspiblitz.conf 2>/dev/null
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
if [ ${#network} -eq 0 ]; then network="bitcoin"; fi
if [ ${#chain} -eq 0 ]; then
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
fi