fully noded: fix displaying the hidden service (#2353)

This commit is contained in:
openoms 2021-08-17 14:56:10 +01:00 committed by GitHub
parent 3f8cb5b4c1
commit 273ee95ace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,12 +22,19 @@ elif [ "${chain}net" == "signet" ]; then
fi
# check and set up the HS
/home/admin/config.scripts/internet.hiddenservice.sh bitcoin ${BITCOINRPCPORT} ${BITCOINRPCPORT}
/home/admin/config.scripts/internet.hiddenservice.sh bitcoin${BITCOINRPCPORT} ${BITCOINRPCPORT} ${BITCOINRPCPORT}
hiddenService=$(sudo cat /mnt/hdd/tor/bitcoin${BITCOINRPCPORT}/hostname)
# https://github.com/rootzoll/raspiblitz/issues/2339
if [ ${#hiddenService} -eq 0 ];then
hiddenService=$(sudo cat /mnt/hdd/tor/bitcoin/hostname)
fi
echo "# The Hidden Service for bitcoind port ${BITCOINRPCPORT} is:"
echo "${hiddenService}"
# btcstandup://<rpcuser>:<rpcpassword>@<hidden service hostname>:<hidden service port>/?label=<optional node label>
quickConnect="btcstandup://$RPC_USER:$PASSWORD_B@$hiddenService:${BITCOINRPCPORT}/?label=$hostname"
quickConnect="btcstandup://${RPC_USER}:${PASSWORD_B}@${hiddenService}:${BITCOINRPCPORT}/?label=${hostname}"
echo
echo "scan the QR Code with Fully Noded to connect to your node:"
/home/admin/config.scripts/blitz.display.sh qr "${quickConnect}"