mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
Merge branch 'master' of https://github.com/rootzoll/raspiblitz
This commit is contained in:
@@ -117,9 +117,9 @@ if [ "${public_port}" = "" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
public_check=$(curl -s https://bitnodes.earn.com/api/v1/nodes/me-${public_port}/ | jq .success)
|
public_check=$(timeout 2s nc -z ${public_ip} ${public_port}; echo $?)
|
||||||
|
|
||||||
if [ $public_check = "true" ]; then
|
if [ $public_check = "0" ]; then
|
||||||
public="Yes"
|
public="Yes"
|
||||||
public_color="${color_green}"
|
public_color="${color_green}"
|
||||||
else
|
else
|
||||||
|
@@ -62,7 +62,7 @@ else
|
|||||||
|
|
||||||
chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
|
chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
|
||||||
switchOption="to MAINNET"
|
switchOption="to MAINNET"
|
||||||
if [ "${chain}" = "test" ]; then
|
if [ "${chain}" = "main" ]; then
|
||||||
switchOption="back to TESTNET"
|
switchOption="back to TESTNET"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user