lnd: don't wait until the RPC port is open after unlocking

According to the release notes of lnd 0.13.0 [0] the RPC service is available at
all times.

[0] https://github.com/lightningnetwork/lnd/releases/tag/v0.13.0-beta
This commit is contained in:
Jonas Nick 2021-07-07 10:24:27 +00:00
parent bc9199a386
commit c75347027b
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -239,11 +239,6 @@ in {
-d "{\"wallet_password\": \"$(cat ${secretsDir}/lnd-wallet-password | tr -d '\n' | base64 -w0)\"}" \ -d "{\"wallet_password\": \"$(cat ${secretsDir}/lnd-wallet-password | tr -d '\n' | base64 -w0)\"}" \
${restUrl}/unlockwallet ${restUrl}/unlockwallet
fi fi
# Wait until the RPC port is open
while ! { exec 3>/dev/tcp/${cfg.rpcAddress}/${toString cfg.rpcPort}; } &>/dev/null; do
sleep 0.1
done
'') '')
# Setting macaroon permission for other users needs root permissions # Setting macaroon permission for other users needs root permissions
(nbLib.privileged "lnd-create-macaroons" '' (nbLib.privileged "lnd-create-macaroons" ''