Browse Source

faster chain check

#146
rootzoll 7 years ago
parent
commit
98a17b7423
  1. 6
      home.admin/70initLND.sh

6
home.admin/70initLND.sh

@ -5,7 +5,11 @@ echo ""
network=`cat .network`
# get chain
chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
chain="test"
isMainChain=$(sudo cat /mnt/hdd/${network}/${network}.conf 2>/dev/null | grep "#testnet=1" -c)
if [ ${isMainChain} -gt 0 ];then
chain="main"
fi
# verify that bitcoin is running
echo "*** Checking ${network} ***"

Loading…
Cancel
Save