mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
localhost to 127.0.0.1
This commit is contained in:
parent
12f93a8936
commit
289451a3b8
@ -124,16 +124,18 @@ do
|
||||
|
||||
# get password c
|
||||
walletPasswordBase64=$(cat /root/lnd.autounlock.pwd | tr -d '\n' | base64 -w0)
|
||||
echo "walletPasswordBase64 --> ${walletPasswordBase64}"
|
||||
#echo "walletPasswordBase64 --> ${walletPasswordBase64}"
|
||||
|
||||
# get macaroon data
|
||||
macaroonData=$(xxd -ps -u -c 1000 /home/bitcoin/.lnd/data/chain/${network}/${chain}net/admin.macaroon)
|
||||
echo "macaroonData --> ${macaroonData}"
|
||||
#echo "macaroonData --> ${macaroonData}"
|
||||
|
||||
# unlock thru REST call
|
||||
curl -s \
|
||||
-H "Grpc-Metadata-macaroon: ${macaroonData})" \
|
||||
--cacert /home/bitcoin/.lnd/tls.cert \
|
||||
-X POST -d "{\"wallet_password\": \"${walletPasswordBase64}\"}" \
|
||||
https://localhost:8080/v1/unlockwallet 2>&1
|
||||
https://127.0.0.1:8080/v1/unlockwallet 2>&1
|
||||
|
||||
else
|
||||
echo "lncli says not locked"
|
||||
|
Loading…
x
Reference in New Issue
Block a user